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

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

代寫B(tài)attleship 、代做Game 設(shè)計(jì)程序
代寫B(tài)attleship 、代做Game 設(shè)計(jì)程序

時(shí)間:2024-10-23  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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












 

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:代做MLE 5217、代寫Python程序設(shè)計(jì)
  • 下一篇:代寫ECE 4122、代做C++編程語言
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日韩精品最新在线观看| 精品免费视频123区| 男人亚洲天堂网| 久久久之久亚州精品露出| 伊人久久青草| 红桃一区二区三区| 深夜精品寂寞黄网站在线观看| 懂色中文一区二区三区在线视频 | 一区二区三区一级片| 免费观看精品视频| 国产精品女人网站| 黄色高清无遮挡| 国产精品美女无圣光视频| 欧美日韩亚洲免费| 国产精品三区在线| 狠狠色伊人亚洲综合网站色| 日韩在线免费观看视频| 日韩亚洲在线视频| 日韩有码在线电影| 激情五月亚洲色图| 美女精品久久久| www.av中文字幕| 亚洲欧洲日韩精品| 久久伦理网站| 日韩精品一区二区三区色欲av| 九色综合日本| 经典三级在线视频| 国产精品福利片| 国产精品亚洲一区| 亚洲va久久久噜噜噜| 久久偷窥视频| 日本999视频| 国产成人无码精品久久久性色| 海角国产乱辈乱精品视频| 国产精品老牛影院在线观看| 国产日韩欧美在线播放| 在线视频精品一区| 久久精品国产一区二区三区日韩| 欧洲精品一区二区三区久久| 国产精品久久久久久久久久东京 | 国产免费观看高清视频| 欧美日韩国产不卡在线看| 久久精品magnetxturnbtih| 国产午夜精品一区| 日韩欧美国产免费| 亚洲字幕一区二区| 国产精品久久久久久久久电影网 | 国产精品免费一区豆花| 91免费版网站入口| 精品一区二区三区日本| 日韩精品一区二区免费| 亚洲精品一品区二品区三品区| 国产精品欧美久久| 国产黄视频在线| 不卡影院一区二区| 精品一区二区三区自拍图片区| 日本a在线天堂| 天天人人精品| 伊人久久大香线蕉综合75| 国产精品乱子乱xxxx| 久久久久久久久久久国产| 7777精品久久久久久| 成人国产精品久久久久久亚洲| 精品欧美一区二区精品久久| 日韩精品久久一区| 午夜老司机精品| 中文字幕一区综合| 九九热视频这里只有精品| 午夜精品一区二区在线观看| 97精品在线观看| 欧美xxxx黑人又粗又长密月| 亚洲一区二区三区久久| 国产精品免费成人| 久久五月天婷婷| 国产精品一区在线播放| 欧美日韩国产一二| 亚洲欧美99| 久久艹在线视频| 久久精品国产精品亚洲精品色| 国产精品一线二线三线| 欧美精品成人一区二区在线观看| 亚洲一区三区电影在线观看| 国产精品久久久久久五月尺| 国产a级片免费观看| av一本久道久久波多野结衣| 免费看国产精品一二区视频| 日韩视频在线播放| 日韩一级片一区二区| 久久91精品国产91久久久| 色婷婷av一区二区三区久久| 国产精品av免费观看| www亚洲国产| 国产欧亚日韩视频| 国产综合免费视频| 热久久视久久精品18亚洲精品| 亚洲视频精品一区| 欧美精品激情在线观看| 国产精品福利网| 国产精品免费入口| 久久精品国产96久久久香蕉| 久久精品成人一区二区三区蜜臀 | 国产另类第一区| 蜜桃免费区二区三区| 欧美在线视频导航| 日韩伦理一区二区三区av在线| 亚洲一区三区在线观看| 久久不射电影网| 国产精品露出视频| 国产精品天天av精麻传媒| 久久99欧美| 久久九九视频| 久久久7777| 国产成人精品久久亚洲高清不卡| 国产精品99久久久久久久| 不卡一区二区三区视频| 成人免费毛片播放| 成人a级免费视频| 成人羞羞国产免费| 99爱视频在线| 91精品国产91久久久久| 国产精品尤物福利片在线观看| 国产欧美在线播放| 国产精品一区二区久久久久| 成人av免费看| 777精品久无码人妻蜜桃| 99中文字幕| 91精品国产高清自在线看超| 91精品视频一区| 久久人人九九| 色黄久久久久久| 国产精品美女在线观看| 久久伊人精品一区二区三区| 国产精品视频不卡| 久久资源免费视频| 最新av在线免费观看| 中文网丁香综合网| 亚洲一区二区三区sesese| 亚洲影视中文字幕| 日韩在线第一区| 日韩国产一级片| 激情小视频网站| 国产九九九九九| 久久资源av| 久久精品美女视频网站| 麻豆成人在线看| 亚洲人精品午夜射精日韩| 日韩在线第一区| 欧美精品卡一卡二| 国产乱子伦精品| 久久视频在线观看中文字幕| 国产成人精品日本亚洲| 久久精品美女视频网站| 精品久久久久久中文字幕动漫| 一区二区不卡在线观看| 日本一区二区三区免费看| 欧美成人精品免费| 草莓视频一区| 丝袜亚洲欧美日韩综合| 精品产品国产在线不卡| 午夜久久久久久久久久久| 欧美污视频久久久| 国产伦精品一区二区三区照片| 久久最新免费视频| 国产精品视频导航| 亚洲欧洲一区二区在线观看| 日韩欧美一区二区三区四区五区| 国产一区二区免费电影| 国产精品av一区| 国产精品福利观看| 色中文字幕在线观看| 免费一区二区三区| 国产精品 欧美在线| 国产精品久久久久久久久久久久冷 | 国产精品夜夜夜一区二区三区尤| 久久99导航| 欧美大成色www永久网站婷| 亚洲成色www久久网站| 欧美激情 国产精品| 91九色在线视频| 久久av.com| 人妻av无码专区| 91免费黄视频| 精品免费久久久久久久| 日韩欧美不卡在线| 国产男女无遮挡| 日韩视频在线观看免费| 亚洲一区二区三区乱码| 欧洲日本亚洲国产区| 国产精品夜色7777狼人| 国产成人精品最新| 日韩一级在线免费观看| 国产在线观看一区二区三区| 国产黄视频在线| 亚洲综合av影视| 国产亚洲精品自在久久| www.久久撸.com| 天天干天天操天天干天天操| 国产人妖伪娘一区91| 国产精品少妇在线视频| 日本一区二区在线视频观看|