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;">

                免费人成视频在线播放| 亚洲午夜激情影院| 欧洲av一区二区三区| 欧产日产国产69| 日韩中文字幕免费观看| 亚洲第一页av| 91在线视频免费播放| 国产人妻精品久久久久野外| 久久久免费看片| 视频一区 中文字幕| 中文字幕亚洲乱码熟女1区2区| 91福利国产成人精品播放| 国产免费av一区| 久久久久亚洲av无码专区| 午夜爱爱毛片xxxx视频免费看| 亚洲乱码精品久久久久..| 国产a∨精品一区二区三区仙踪林| 黑人乱码一区二区三区av| 日本特级黄色片| 亚洲欧美视频在线播放| 国产精品熟女视频| 日本中文字幕在线观看视频| 最近中文字幕免费观看| 国产精品九九视频| 人妻无码中文字幕免费视频蜜桃| 制服.丝袜.亚洲.中文.综合懂| 波多野结衣一本| 欧美日韩中文字幕在线观看| 中文在线最新版天堂| 国产精品久久久久久人| 日本福利片在线观看| 91极品尤物在线播放国产| 精品伦精品一区二区三区视频密桃| 色欲人妻综合网| 北条麻妃一二三区| 日韩久久久久久久久| 1024在线看片| 秋霞网一区二区| 一级特黄色大片| 免费在线视频观看| 亚洲综合欧美在线| 欧美日韩激情在线观看| 91视频啊啊啊| 欧美熟妇激情一区二区三区| 69av视频在线| 日韩专区第一页| 国产精品乱码一区二区| 午夜免费激情视频| 国产又黄又粗又爽| 中文无码av一区二区三区| 好吊日在线视频| 亚洲一区二区中文字幕在线观看| 久久综合亚洲色hezyo国产| 一级黄色录像在线观看| 欧美日韩色视频| а√中文在线资源库| 特黄aaaaaaaaa真人毛片| 国产女人18水真多毛片18精品| 在线免费播放av| 男人的天堂官网| 成人无码www在线看免费| 无码人妻一区二区三区免费| 国产原创剧情av| 一级久久久久久| 无码人妻aⅴ一区二区三区有奶水| 国产三级第一页| 亚洲最大成人av| 少妇av一区二区| 黄色a级三级三级三级| 91黄色在线视频| 亚洲v国产v欧美v久久久久久| 久久精品视频免费在线观看| 一级黄色高清视频| 影音先锋黄色资源| 欧美一级淫片免费视频黄| 国产精品日日摸夜夜爽| 亚洲午夜福利在线观看| 色婷婷av一区二区三| 免费观看一区二区三区| 国产免费无遮挡| av无码一区二区三区| 中文字幕精品久久久| 日韩欧美123区| 内射毛片内射国产夫妻| 国产老熟女伦老熟妇露脸| 亚洲最大免费视频| 中文字幕一区二区三区人妻| 少妇黄色一级片| 欧美日韩在线观看不卡| 久久久久国产精品夜夜夜夜夜| 国产成人久久久久| 超碰人人人人人人人| 一级欧美一级日韩片| 亚洲欧美日韩中文字幕在线观看| 午夜免费精品视频| 四季av综合网站| 色欲av无码一区二区三区| 日韩av片在线免费观看| 免费在线不卡视频| 久久亚洲AV无码专区成人国产| 好吊色一区二区三区| 国产一区二区三区四区视频| 国产成人免费在线观看视频| 成人免费视频国产免费麻豆| jizz中文字幕| 国产成人在线观看网站| 国产99在线 | 亚洲| 国产精品国产精品88| 成年人三级黄色片| 国产88在线观看入口| 国产成人精品一区二区色戒| 国产精品 欧美激情| 国产农村妇女毛片精品久久| 国产欧美一区二| 国精产品视频一二二区| 国产在线视频99| 精品日韩久久久| 美女久久久久久久久| 人妻中文字幕一区| 色哟哟网站在线观看| 五月婷婷在线播放| 综合久久中文字幕| 亚洲无在线观看| 成人公开免费视频| 国产美女www| 久久亚洲av午夜福利精品一区| 伦理片一区二区| 日韩中文字幕免费在线观看| 亚洲h视频在线观看| 亚洲中文一区二区三区| av黄色免费网站| 国产在线拍揄自揄拍| 欧美日韩在线观看免费| 五月婷婷在线观看视频| 亚洲涩涩在线观看| 国产精品久久久久久久99| 久草成人在线视频| 天天操天天爽天天射| 亚洲免费黄色网| 国产日韩一级片| 男女羞羞免费视频| 一区二区三区入口| 波多野结衣亚洲一区二区| 黑人精品无码一区二区三区AV| 秋霞精品一区二区三区| 最近中文字幕在线观看| 波多野结衣三级视频| 蜜臀久久精品久久久久| 亚洲成人精品在线播放| 艹b视频在线观看| 蜜臀精品一区二区三区| 在线播放成人av| 国产18精品乱码免费看| 欧美色视频一区二区三区在线观看| 亚洲 欧美 日韩在线| 国产高清视频免费在线观看| 男人网站在线观看| 一级黄色大片视频| 久久久久亚洲av无码专区桃色| 亚洲第一黄色网址| 国产熟女一区二区三区五月婷| 日韩有码第一页| 国产高潮久久久| 天天干天天干天天干天天干天天干 | 日本亚洲一区二区三区| 亚洲日本韩国在线| 美女喷白浆视频| 亚洲人午夜射精精品日韩| 精品少妇人妻av一区二区三区| 性xxxxbbbb| 国产午夜视频在线| 在线xxxxx| 精品肉丝脚一区二区三区| 中文字幕网站在线观看| 九九九国产视频| 中文字幕在线观看免费高清| 黄色aaa毛片| 亚洲精品乱码久久久久久蜜桃欧美 | 日韩久久精品视频| 懂色av粉嫩av蜜臀av一区二区三区| 欧美一区二区激情视频| 9i看片成人免费看片| 天天干天天干天天干| 国精品无码人妻一区二区三区 | 中文字幕一区二区人妻在线不卡| 国产视频一二三四区| 中文字幕在线2019| 久久这里只有精品9| www.五月婷婷| 在线观看一区二区三区视频| 精品成人无码一区二区三区| 夜夜嗨aⅴ一区二区三区| 日本黄色小视频在线观看| 国产乱色精品成人免费视频| 中文资源在线播放| 人人干在线观看| 国产又粗又黄又爽| 999在线免费视频| 一级做a爰片久久毛片| 欧美日韩一二三四区|