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++編程語言
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

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

          9000px;">

                五月婷婷六月丁香激情| 国产v在线观看| 嫩草影院国产精品| 黄色av一级片| 动漫av一区二区三区| 天天干,夜夜爽| 中文字幕av影视| 色欲一区二区三区精品a片| 国产视频在线观看免费 | 美女黄色一级视频| 中文字幕在线导航| 亚洲av熟女高潮一区二区| 欧洲第一无人区观看| 国产 日韩 欧美 成人| 亚洲人妻一区二区| 伊人亚洲综合网| 性猛交娇小69hd| 日韩影院一区二区| 日韩字幕在线观看| 欧美视频在线观看一区二区三区| 国产黄色片免费观看| 99re6热在线精品视频| 中文字幕免费高清在线观看| 中文字幕av影院| 五月婷婷六月色| 亚洲va欧美va| 婷婷丁香激情网| 久久久久久亚洲中文字幕无码| 国产免费久久久久| 国产精品23p| 国产一级特黄a高潮片| 国产三级午夜理伦三级| 国产又黄又爽又无遮挡| 国产精品九九九九| 国产精品系列视频| 国产婷婷色一区二区在线观看| 岛国av免费观看| 国产精品久久久久久久免费看| 成人黄色一级大片| 国产视频第一页| 天天操天天干天天爽| 手机在线成人av| 亚洲av无码一区二区三区观看| 中文字幕一二区| 亚洲视频一区二区三区四区| 91传媒理伦片在线观看| 国产 xxxx| 中文字幕在线观看国产| 亚洲五月激情网| 国产成人在线免费观看视频| 久草视频免费播放| 免费观看成人毛片| 人妻中文字幕一区| 天天干,夜夜操| 亚洲欧美一区二区三区不卡| 亚洲天堂精品一区| 国产精品白丝喷水在线观看| 激情小说中文字幕| 久草视频在线免费看| 日韩一级理论片| 亚洲第一成肉网| jizz欧美性11| 国产精品视频在线观看免费| 你懂的网站在线| 偷拍女澡堂一区二区三区| 亚洲精品久久久久久久蜜桃 | 欧美在线观看不卡| 日韩无码精品一区二区| 一级做a爰片久久毛片16| 一道本视频在线观看| 好看的av在线| 青青视频在线免费观看| 中文天堂在线播放| 懂色av蜜臀av粉嫩av永久| 久久精品视频久久| 五月婷婷深爱五月| 亚洲调教欧美在线| 极品颜值美女露脸啪啪| 日韩黄色免费观看| 一级黄色大毛片| 国产又大又黄又粗又爽| 性久久久久久久久久久| aa一级黄色片| 欧美一区二区三区网站| 可以免费看毛片的网站| 亚洲成av人片在线观看无| 亚洲人视频在线观看| 国产三级小视频| 午夜老司机福利| 成人片黄网站色大片免费毛片| 国产99久久久| 天堂网视频在线| 91网址在线播放| 欧美一区二区三区不卡视频| 亚洲免费黄色片| 免费看一级黄色| 中文字幕在线观看国产| 久久无码人妻精品一区二区三区| 性色av一区二区三区四区| 国产手机视频在线| 性猛交╳xxx乱大交| 亚洲欧美日韩一级| 蜜桃在线一区二区| 亚洲一级片免费| 欧美亚洲精品在线观看| 亚洲天堂久久新| 欧美日韩一二三四区| 91n在线视频| 天海翼在线视频| 国产精品视频在线观看免费| 亚洲av无一区二区三区| 国产影视一区二区| 天天射,天天干| 韩国av免费在线观看| 在线播放成人av| 男女男精品视频站| www.日本在线观看| 无码视频一区二区三区| 国产熟女一区二区丰满| 亚洲永久无码7777kkk| 欧美偷拍第一页| 国产情侣av在线| 在线免费观看av网址| 久久免费公开视频| 69亚洲乱人伦| 伦av综合一区| aaa黄色大片| 亚洲成人福利在线| 狠狠综合久久av一区二区| 一级黄色免费视频| 四季av中文字幕| 美国精品一区二区| 国产a级免费视频| 亚洲国产综合一区| 三区四区在线观看| 黄色一级视频在线观看| 91精品啪在线观看国产| 天天躁日日躁狠狠躁伊人| 国产精品自产拍| 亚洲伦理一区二区三区| 视频一区二区免费| 欧美综合视频在线| 国产午夜精品久久久久| www.五月激情| 亚洲国产精品久| 一区二区国产欧美| 日本黄色特级片| 免费在线观看亚洲| 国产毛片久久久久久久| 91在线你懂的| 最新日本中文字幕| 亚洲第一黄色网址| 日韩激情综合网| 潘金莲一级淫片aaaaaaa| 国产又黄又嫩又滑又白| 国产乱码久久久久久| 99久久精品久久亚洲精品| 亚洲国产精品免费在线观看 | 国产精品一区二区人人爽| 久热精品在线观看视频| 亚洲美女爱爱视频| 免费成人黄色大片| 波多野结衣亚洲色图| 青青青国产在线| 国产精品一级二级| 亚洲第一成年人网站| 偷拍精品一区二区三区| 国产一级在线播放| 成人av无码一区二区三区| 亚洲污视频在线观看| 最近中文字幕在线观看| 婷婷在线精品视频| 婷婷在线观看视频| 手机av免费在线观看| 天天干天天干天天干| 日本黄色小视频在线观看| 日韩欧美不卡视频| 欧美熟妇精品黑人巨大一二三区| 欧美xxxxx精品| 牛夜精品久久久久久久| 人人妻人人藻人人爽欧美一区| 久久这里只有精品9| 人妻夜夜爽天天爽| 欧美三日本三级少妇99| 日韩特黄一级片| 十八禁一区二区三区| 天堂а√在线中文在线鲁大师| 日本精品在线免费观看| 无码精品视频一区二区三区| 四虎成人精品永久免费av| 亚洲av午夜精品一区二区三区| 天堂中文字幕av| 中文字幕在线观看91| 亚洲精品在线网址| 99视频国产精品免费观看a| www色aa色aawww| 精品日韩在线视频| 久久人妻无码aⅴ毛片a片app | 国产精品99re| 97人妻精品一区二区三区软件|