国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    97国产精品视频| 久久精品中文字幕一区二区三区| 欧美人与性动交a欧美精品| 久久精品色欧美aⅴ一区二区| 天堂√在线观看一区二区| 久久97久久97精品免视看 | 久久精品国产免费观看| 九色91国产| 久久久久久久成人| 色视频www在线播放国产成人| 色偷偷888欧美精品久久久| 久久久人成影片一区二区三区观看| 日本一区二区在线视频| 亚洲欧洲一区二区在线观看| 一区一区视频| 亚洲精品免费在线看| 午夜精品久久久久久久男人的天堂| 日韩在线资源网| 国产青青在线视频| 欧美一级视频免费看| 亚洲欧洲日产国码无码久久99| 亚洲一区亚洲二区| 性欧美亚洲xxxx乳在线观看 | 日韩视频免费播放| 欧美激情视频网| 久久艳妇乳肉豪妇荡乳av| 欧美日韩一区综合| 国产在线视频2019最新视频| 欧洲日本亚洲国产区| 男人的天堂狠狠干| 日韩av一区二区三区在线观看| 国产精品视频区1| 国产精品9999| 精品国产一区二区三区久久狼黑人| 91免费在线观看网站| 久久久爽爽爽美女图片| 国产伦精品一区二区三区照片 | 久久久久久久久电影| 国产精品久久精品国产| 久久躁狠狠躁夜夜爽| 久久久久一区二区| 国产精品嫩草在线观看| 欧美精品xxx| 日本不卡免费新一二三区| 国产在线视频91| 久久国产精品高清| 久国内精品在线| 久久亚洲精品视频| 亚洲高清精品中出| 欧美日韩国产免费一区二区三区| 国产卡一卡二在线| 国产精品三级在线| 日韩在线国产| 风间由美久久久| 国产日本欧美在线| 久久久久狠狠高潮亚洲精品| www亚洲国产| 国产人妻人伦精品| 久久青草福利网站| 色综合久久悠悠| 欧美日韩国产精品一区二区| 欧美视频第一区| 97人人模人人爽人人少妇| 久久精品视频在线播放| 久久精品在线视频| 亚洲精品一区二区三区樱花| 精品视频一区二区三区四区| 国产亚洲欧美一区二区| 久久日韩精品| 制服诱惑一区| 国产情侣第一页| 国产精品成av人在线视午夜片| 久久艹在线视频| 青青草国产免费| 久久亚洲精品欧美| 亚洲熟妇av日韩熟妇在线| 中文字幕一区二区三区乱码| 欧美高清性xxxxhd| 久久久久久久一| 国产精品三级美女白浆呻吟| 视频一区二区三区免费观看| 97精品久久久中文字幕免费| 影音先锋欧美在线| 国产色婷婷国产综合在线理论片a| 精品免费视频123区| 国产又爽又黄的激情精品视频| 久草一区二区| 国产精品成人v| 国产99久久精品一区二区永久免费| 精品国产免费人成电影在线观... 精品国产免费一区二区三区 | 久热精品在线视频| 欧美激情xxxx性bbbb| 黄页网站在线观看视频| 国产精品一区二区久久国产| 国产精品色悠悠| 欧美精品亚洲| 99色精品视频| 久久久久久久av| 日韩精品免费一区| 日日骚久久av| 中文字幕一区二区三区四区五区六区| 天天好比中文综合网| 91免费精品视频| 天堂精品视频| 日韩中文字幕精品| 女同一区二区| 久久综合九色综合网站| 亚洲精品免费av| 久久免费国产精品1| 国产精品天天狠天天看| 女女同性女同一区二区三区91 | 欧美精品与人动性物交免费看 | 亚洲一区二区三区在线观看视频| 成人精品视频在线播放| 久久黄色免费看| 日韩av黄色网址| 久久精品在线播放| 国产美女永久无遮挡| 亚洲精品一区二区三区四区五区 | 视频一区二区三区在线观看| 日韩在线视频免费观看高清中文 | 97精品一区二区三区| 国产精品高清网站| 日本一区二区久久精品| 国产伦理久久久| 亚洲一区影院| 精品国模在线视频| 国产免费黄色小视频| 国产精品无码人妻一区二区在线| 国内精品小视频在线观看| 久久久久免费精品| 精品少妇人妻av一区二区| 亚洲影院污污.| 国产精品一区二区在线观看| 亚洲欧洲一区二区福利| 成人免费无码av| 国产精品福利无圣光在线一区| 国产视频福利一区| 日韩免费观看av| 久久久久福利视频| 欧美精品一区免费| 亚洲精品一区国产精品| 国产精品美女在线| 欧美精品成人网| 久久国产成人精品国产成人亚洲| 黄色片视频在线免费观看| 亚洲精品国产精品国自产观看| 成人久久久久爱| 欧美日韩成人免费| 久久av免费观看| www日韩在线观看| 亚洲精品蜜桃久久久久久| 国产精品美女999| 久久精品国产精品亚洲精品色 | 日本精品一区二区三区在线| 精品国产电影| 久久天天躁狠狠躁夜夜爽蜜月| 秋霞无码一区二区| 久久精品99| 日韩激情视频| 亚洲最大av网站| 国产精品乱码| 色噜噜狠狠狠综合曰曰曰| 欧美午夜性视频| 久久久999国产精品| 成人动漫在线视频| 亚洲色欲久久久综合网东京热| 国产精品一区二区三区免费视频| 日韩精品视频久久| 欧美一区二区三区艳史| 亚洲欧美综合一区| 国产高清在线不卡| 国产精选一区二区| 亚洲AV无码成人精品一区| 操日韩av在线电影| 国产精品久久久久秋霞鲁丝| 国产一区二区三区四区五区在线 | 黄色一级免费大片| 国产精品十八以下禁看| 国内精品二区| 岳毛多又紧做起爽| 久久久人人爽| 99三级在线| 欧美自拍大量在线观看| 日韩中文字幕在线视频观看| 久久久久久com| 欧美激情精品久久久久久| 久久久久国产精品www| 久久波多野结衣| 免费看黄色a级片| 欧美综合激情网| 日韩人妻精品一区二区三区| 日本网站免费在线观看| 欧美一级片免费在线| 日本亚洲精品在线观看| 欧美专区在线播放| 一区二区三区四区免费视频 | 亚洲一区二区三区在线观看视频 | 国产精品久久亚洲7777| 91av在线播放|