99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫Battleship 、代做Game 設計程序
代寫Battleship 、代做Game 設計程序

時間:2024-10-23  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



Game Description 
Battleship is a classic two-player game in which you aim to sink all of your opponent's ships before they sink yours. 
Each player has a fleet of ships that they place on a grid, and they take turns guessing the locations of their 
opponent's ships. In this game version, one player is a human, and the other is a computer. 
SETUP 
Board: Each player has a 10x10 grid (board) where they place their ships. 
Ships: Each player has a fleet consisting of different types of ships: 
 Battleship: Occupies 4 cells. 
 Carrier: Occupies 5 cells. 
 Submarine: Occupies 3 cells. 
 Patrol Boat: Occupies 2 cells. 
Ships can be placed either horizontally or vertically on the grid. 
GAME PLAY 
Ship Placement: 
Human Player: The human player manually places their ships on their grid. They are prompted to select the type of 
ship, its starting coordinates, and its orientation (horizontal or vertical). 
Computer Player: The computer player's ships are automatically placed on its grid based on predefined 
configurations read from a configuration file (config.txt). 
TAKING TURNS: 
Players take turns guessing the locations of their opponent's ships by specifying coordinates (x, y) on the grid. 
The game announces whether the guess is a "hit" or a "miss." A hit means that part of a ship is located at the 
guessed coordinates. A miss means there is no ship at the guessed coordinates. 
WINNING THE GAME: 
The game continues until one player has sunk all their opponent's ships. 
A ship is considered sunk when all of its cells have been hit. 
The player who sinks all of their opponent's ships first is declared the winner. 
 Game Specifications: 
The game board is a 10x10 grid, each cell represented by square brackets []. The grid is used to place ships and 
make guesses. Each cell can either be empty, contain part of a ship, or be marked as a hit or miss. 
This is what the empty game board looks like before ships have been placed: 
 
IDENTIFIERS FOR SHIPS: 
Ships: Ships are represented by their identifiers in the cells they occupy. 
 Battleship (B) 
 Carrier (C) 
 Submarine (S) 
 Patrol Boat (P) 
 
Here is a sample board that the human player will see when placing their own ships: 
 
 TRACK HITS AND MISSES 
Another board is used to keep track of the hits and misses. 
 A hit is marked with an X. 
A miss is marked with an O. 
 
Here is an example board: 
 
CONFIG.TXT 
A configuration file must be read to set up the computer player's arrangement of the board. The configuration file 
should contain a separate line for each type of ship. Each line should include the ship's name, the x coordinate, the 
y coordinate, and whether the placement is horizontal (H) or vertical (V). 
Here is a sample config.txt: 
Submarine 2 2 H 
Battleship 3 3 H 
PatrolBoat 4 5 V 
Carrier 5 6 H 
This is the result: 
 
 PROMPT 
The program will first read and parse the config file, building the game grid for the computer player. Then, the 
human player will be prompted to input the type of ship, the starting x and y coordinates, and whether the ship 
should be placed horizontally or vertically on the game board. After entering the details of each ship, the player 
should see the grid displayed. Once all of the ships have been placed (one of each kind), the player will be 
prompted to guess the location of one of the computer’s ships by entering the x and y coordinates. If the player 
guesses the correct location of one of the ships, the player receives a message indicating a hit. The player should 
be able to take another turn if they correctly “hit” the computer’s ship. If the player receives a “miss,” the 
computer should take a turn, printing out its guess to the player and indicating whether it was a hit or miss. The 
prompt should also indicate when a ship has been “sunk” (all spots on the grid for that ship are guessed). The 
game continues until one player sinks all of the opponent's ships. The player who sinks all of the opponent's ships 
first is declared the winner. 
 
Requirements 
The base game components have been provided to you in D2L. Those *.java files contain the clues you need to 
complete a functioning Battleship game. You shouldn’t need to re-write any existing code provided; you must use 
the methods and data types indicated. However, you can add any additional classes or enums if you wish. 
You are to avoid the use of global variables or non-private class variables (using enums is permitted). 
Submission 
Submit your completed *.java files to D2L. Do not submit *.class files or any other files. Include your name and 
UCID at the top of both of those files. 
Demonstration 
You must demonstrate your assignment to the tutorial leader. The tutorial leader will ask questions to test your 
understanding of your submitted code. If you cannot sufficiently answer the questions, your assignment will 
receive an incomplete. You will then need to arrange a peer-programming session with the TA to demonstrate 
your knowledge of the fundamental aspects of this assignment, where you will be capable of receiving a maximum 
grade of C-. Failure to complete this session satisfactorily will result in an F for the assignment. 
Unit Tests 
To prove your implementation, you must create unit test cases for the code’s functionality. 
 
 Grading 
We will simplify the grading process for this assignment. 
A GRADE REQUIREMENTS: 
Submission: The assignment is submitted on time to D2L with all required files and a link to GitLab with the TA as a 
developer. 
Full Functionality: All required functionality is implemented. 
Code Documentation: The student explains the code with clear comments and documentation. 
Code Explanation: The student satisfactorily answers the tutorial leader's questions about the code and clearly 
understands the implementation. 
Unit Tests: Adequately tests the program and demonstrates the various principles of unit testing. 
B GRADE REQUIREMENTS: 
Submission: The assignment is submitted on time to D2L with all required files and a link to GitLab with the TA as a 
developer. 
Full Functionality: All required functionality is implemented. 
Code Explanation: The student satisfactorily answers the tutorial leader's questions about the code and clearly 
understands the implementation. 
One or more of these are insufficient: 
 Test Cases: Some test cases are missing or not comprehensive. 
 Documentation: Some parts of the code are not adequately documented. 
 Code Quality: The code is mostly clean and well-organized but may have minor issues in naming conventions 
or structure. 
C GRADE REQUIREMENTS: 
Submission: The assignment is submitted on time to D2L with all required files and a link to GitLab with the TA as a 
developer. 
Code Explanation: The student satisfactorily answers the tutorial leader's questions about the code and clearly 
understands the implementation. 
One or more of the following apply: 
 Limited Functionality: File reading/user input is complete, but other methods/mechanics are not. 
 Limited/No Test Cases: Some test cases are missing or not comprehensive. 
 Limited/No Documentation: Some parts of the code are not adequately documented. 
 Code Quality: The code is mostly clean and well-organized but may have minor naming conventions or 
structure issues. 
 

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp












 

掃一掃在手機打開當前頁
  • 上一篇:代做MLE 5217、代寫Python程序設計
  • 下一篇:代寫ECE 4122、代做C++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                处破女av一区二区| 欧美高清在线视频| 91黄色小视频| 国产精品国产三级国产普通话99| 欧美在线观看视频一区二区三区| 2023国产精华国产精品| 久久精品亚洲乱码伦伦中文| 亚洲va国产va欧美va观看| 欧美成va人片在线观看| 国产午夜亚洲精品理论片色戒 | 精彩视频一区二区三区| 欧美亚洲图片小说| 亚洲丶国产丶欧美一区二区三区| 欧美精品一区二区三区在线播放| 久久精品国产一区二区三 | 日韩中文字幕91| 欧美成人三级在线| 91在线免费视频观看| 国产欧美日韩久久| 粉嫩欧美一区二区三区高清影视| 亚洲成人精品一区二区| 成人免费一区二区三区视频| 精品国产99国产精品| 欧美综合亚洲图片综合区| 无码av中文一区二区三区桃花岛| 一区2区3区在线看| 亚洲图片欧美一区| 欧美电影在哪看比较好| 亚洲电影一区二区| 国产精品入口麻豆九色| 欧美白人最猛性xxxxx69交| 26uuu亚洲| 欧美a一区二区| 亚洲伦理在线免费看| 欧美日韩国产综合久久| 色噜噜夜夜夜综合网| 日韩国产高清在线| 国产+成+人+亚洲欧洲自线| 国产成人综合亚洲网站| 国产酒店精品激情| 在线成人高清不卡| 久久精品男人天堂av| 国产精品麻豆欧美日韩ww| 亚洲高清中文字幕| 成人av综合在线| 国精产品一区一区三区mba桃花| 亚洲成a人片综合在线| 国产精品久久久爽爽爽麻豆色哟哟| 欧美日韩1234| 久久久99精品免费观看不卡| 亚洲一区二区三区四区在线免费观看| 欧美日韩aaaaa| 国产精品久久午夜夜伦鲁鲁| 不卡一区在线观看| 日韩亚洲欧美成人一区| 在线观看日韩精品| 日本韩国精品一区二区在线观看| 精品一区二区久久久| 美女一区二区三区| 五月开心婷婷久久| 日韩高清在线不卡| 丝袜诱惑亚洲看片| 日韩成人精品视频| 精品一区二区久久久| 国产一区二区精品久久| 国产成人精品一区二区三区网站观看| 国产成人综合亚洲网站| 91在线观看一区二区| 欧美怡红院视频| 欧美日韩精品一区二区三区蜜桃 | 国产精品美女久久久久久2018| 国产欧美日韩不卡免费| 中文字幕欧美日韩一区| 亚洲欧美在线aaa| 亚洲成人tv网| 国产一区二区伦理片| 99re6这里只有精品视频在线观看| 色综合中文综合网| 91久久精品一区二区三| 欧美精品久久一区| 久久蜜桃av一区二区天堂| 国产精品久久久久国产精品日日| 一区二区三区色| 青娱乐精品视频在线| 盗摄精品av一区二区三区| 日本精品免费观看高清观看| 日韩一区二区视频| 国产精品二三区| 人人狠狠综合久久亚洲| www.欧美精品一二区| 欧美一区二区三区爱爱| 国产精品久久久久婷婷| 亚洲mv在线观看| 高清在线成人网| 正在播放一区二区| 国产精品初高中害羞小美女文 | 日韩在线卡一卡二| 国产91精品欧美| 欧美日韩国产综合一区二区| 中国av一区二区三区| 五月天激情综合| 一本久久精品一区二区| 欧美精品一区男女天堂| 亚洲国产一区二区三区| 成人三级伦理片| 精品国产在天天线2019| 亚洲国产一区在线观看| 处破女av一区二区| 精品久久人人做人人爽| 亚洲午夜精品一区二区三区他趣| 不卡高清视频专区| 精品免费99久久| 五月婷婷综合在线| 日本大香伊一区二区三区| 国产精品人人做人人爽人人添| 久久丁香综合五月国产三级网站| 91精品在线免费观看| 亚洲成人在线观看视频| 色婷婷久久久亚洲一区二区三区| 中文字幕+乱码+中文字幕一区| 精品一区二区免费看| 精品欧美一区二区久久| 免费高清成人在线| 欧美老肥妇做.爰bbww| 午夜精品久久久久久久| 欧美日韩亚洲综合一区 | 欧美欧美欧美欧美| 亚洲国产成人高清精品| 欧美日韩在线一区二区| 亚洲在线观看免费| 欧美日韩日日夜夜| 日日嗨av一区二区三区四区| 91精品欧美久久久久久动漫| 秋霞av亚洲一区二区三| 日韩欧美一二三| 国产精品亚洲专一区二区三区| 久久亚洲私人国产精品va媚药| 国产精品一区免费视频| 国产精品美女久久久久aⅴ国产馆| 99re热这里只有精品免费视频| 日韩美女啊v在线免费观看| 一本久久a久久精品亚洲| 一区二区三区四区高清精品免费观看 | 日本一区二区电影| 成人免费毛片app| 中文字幕中文字幕中文字幕亚洲无线| 99国产一区二区三精品乱码| 亚洲图片欧美视频| 久久综合色天天久久综合图片| 国产不卡视频一区二区三区| 一色屋精品亚洲香蕉网站| 欧美亚洲自拍偷拍| 免费成人在线网站| 国产亚洲精品免费| 在线精品视频免费播放| 奇米精品一区二区三区四区| 国产清纯白嫩初高生在线观看91| 色88888久久久久久影院野外| 男男gaygay亚洲| ...中文天堂在线一区| 欧美男同性恋视频网站| 成人综合在线视频| 亚洲超碰精品一区二区| 中文字幕av一区二区三区| 欧美日韩激情一区二区| 成人黄色综合网站| 强制捆绑调教一区二区| 亚洲日本青草视频在线怡红院 | 精品视频一区二区不卡| 国产精品亚洲视频| 一区二区三区在线免费| 精品国产乱码久久久久久影片| 99re8在线精品视频免费播放| 青青草一区二区三区| 一区二区三区四区在线| 久久综合五月天婷婷伊人| 91精品欧美久久久久久动漫| 99国产精品久| 国产一区二区中文字幕| 日韩av中文字幕一区二区三区| 亚洲视频在线一区观看| 国产亚洲一区二区三区四区 | 亚洲猫色日本管| 欧美激情一区在线观看| 日韩欧美一区二区在线视频| 91在线国产福利| 国产激情视频一区二区三区欧美| 午夜av一区二区| 亚洲激情网站免费观看| 亚洲欧洲av色图| 国产日韩欧美不卡| 久久伊人蜜桃av一区二区| 欧美一区二区三区系列电影| 欧美丝袜丝交足nylons| 欧美在线不卡视频| 91久久精品网| 在线观看一区二区精品视频| 色中色一区二区| 色老汉一区二区三区| 色综合久久中文综合久久97|