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

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

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

時(shí)間:2024-10-23  來(lái)源:合肥網(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. 
 

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp












 

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    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)營(yíng)技巧,多多開(kāi)團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁(yè)版入口 破天一劍 目錄網(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號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    91久久久久久久| 激情综合在线观看| 日韩精品一区二区在线视频| 精品一区国产| 日韩在线欧美在线| 视频一区亚洲| 99在线观看视频免费| 色综合91久久精品中文字幕| 欧美视频观看一区| 久久人人九九| 亚洲精品成人久久久998| 国产欧美在线播放| 精品久久久久久无码中文野结衣| 黄色网址在线免费看| 国产成人久久久| 日韩欧美亚洲精品| 久久av喷吹av高潮av| 日本成熟性欧美| 久久综合伊人77777麻豆| 一区精品在线| 99免费在线视频观看| 亚洲自拍av在线| 99国产在线观看| 亚洲精品人成| 91精品国产91久久久久福利| 亚洲欧洲国产精品久久| 成年丰满熟妇午夜免费视频| 亚洲一区免费看| 国产经典久久久| 日韩国产欧美精品| 久久精品小视频| 国产日产亚洲精品| 在线一区高清| 99在线视频免费观看| 无码人妻精品一区二区三区99v| 91久久精品在线| 天堂va久久久噜噜噜久久va| 久久精品香蕉视频| 人妻夜夜添夜夜无码av| 国产精品视频一区二区三区四区五区 | 中文字幕成人一区| 国产免费一区二区三区在线观看 | 91九色丨porny丨国产jk| 亚洲免费久久| 久久影视中文粉嫩av| 日韩国产一级片| 国产精品网站免费| 国产日本在线播放| 亚洲乱码一区二区三区| 欧美日韩亚洲免费| 91精品国产综合久久久久久蜜臀 | 一区二区日本伦理| 91国产视频在线播放| 日韩精品一区中文字幕| 国产精品久久久av久久久| 国产在线999| 亚洲精品日韩在线观看| 日韩中文字幕在线播放| 精品嫩模一区二区三区| 久久在精品线影院精品国产| www.com毛片| 日韩精品一区二区三区不卡| 国产精品久久久久7777| 91九色国产在线| 欧美成ee人免费视频| 在线观看日韩羞羞视频| 久久久久久美女| 国产欧美在线视频| 日韩免费高清在线| 欧美激情一级二级| 色偷偷噜噜噜亚洲男人| 成人精品久久一区二区三区| 人人做人人澡人人爽欧美| 国产精品成人免费视频| www.欧美黄色| 欧美一区二区影院| 在线一区亚洲| 国产精品三级美女白浆呻吟| 97精品免费视频| 欧美极品少妇无套实战| 亚洲欧美日韩精品久久久| 国产精品欧美激情| 国产精成人品localhost| 国产尤物91| 欧美有码在线视频| 亚洲影视九九影院在线观看| 国产精品视频一区二区高潮| 91久久嫩草影院一区二区| 国内精品国语自产拍在线观看| 亚洲精品欧美极品| 国产精品视频自在线| 久久综合九色99| 国产乱淫av片杨贵妃| 欧美久久在线| 日本一区二区不卡高清更新| 欧美另类69精品久久久久9999| 久久精品人成| 91九色国产社区在线观看| 免费国产成人av| 欧美在线中文字幕| 无码免费一区二区三区免费播放| 色综合视频一区中文字幕| 国产精品免费视频久久久| 国产成人在线亚洲欧美| 国产精品永久免费在线| 欧美精品一区二区三区四区五区| 日韩在线第一区| 亚洲自拍小视频| 精品国产av无码一区二区三区| 久久综合伊人77777蜜臀| 国产成人永久免费视频| 91精品久久久久久久久久久久久久 | 亚洲综合视频1区| 久久亚洲国产精品成人av秋霞| 久久精品国产精品亚洲| 久久av免费一区| 久久免费一级片| 久久久一本精品99久久精品| 99久久精品久久久久久ai换脸| 国产欧美日韩91| 国产女主播自拍| 国产区欧美区日韩区| 国产一区二区在线播放| 免费看黄在线看| 免费观看国产成人| 精品一区二区日本| 欧美做暖暖视频| 欧美亚洲在线观看| 欧美最猛黑人xxxx黑人猛叫黄| 日本a级片在线播放| 日本免费不卡一区二区| 日韩五码在线观看| 青草视频在线观看视频| 欧美在线视频网站| 精品999在线观看| 国内揄拍国内精品| 国产一区二区精品在线| 国产三区二区一区久久| 国产呦系列欧美呦日韩呦| 国产麻豆乱码精品一区二区三区| 国产伦精品一区二区三区免费视频 | 国产精品对白一区二区三区| 国产精品高清网站| 欧美大码xxxx| 亚洲永久免费观看| 日韩一区免费观看| 青青在线视频免费观看| 黄色网zhan| 高清亚洲成在人网站天堂| 91免费版网站在线观看| 国产精华一区| 日韩视频在线免费| 国产精品久久久久av免费| 欧美精品电影在线| 川上优av一区二区线观看| 热99精品只有里视频精品| 欧美日韩国产不卡在线看| 精品视频一区二区在线| 99电影在线观看| 欧美亚洲国产免费| 狠狠色综合色区| 成人精品一区二区三区电影黑人| 91精品国产91久久久久福利| 国产成人激情小视频| 国产精品久久久久av| 精品自在线视频| 色视频一区二区三区| 欧美亚洲国产成人| 国产欧美精品在线| 久热免费在线观看| 国产精品久久久久久五月尺| 亚洲一二三区精品| 日本精品va在线观看| 精品视频在线观看一区二区 | 日韩一级片免费视频| 欧美韩国日本在线| 超碰97人人人人人蜜桃| 久久久久久久久久久av| 国产精品第一视频| 午夜精品理论片| 精品一区二区三区自拍图片区| 91精品国产九九九久久久亚洲| 久久精品成人动漫| 亚洲自拍中文字幕| 国内外免费激情视频| 久久人人爽爽人人爽人人片av| 国产精品国产亚洲精品看不卡 | 国产精品乱码一区二区三区| 自拍日韩亚洲一区在线| 日本不卡在线播放| 国产免费成人av| 日韩视频免费在线观看| 亚洲五码在线观看视频| 黄色大片在线免费看| 久久青青草原一区二区| 欧美区二区三区| 欧美动漫一区二区| 久久久福利视频| 中文字幕一区二区三区精彩视频 | 久久综合毛片|