国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女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在线免费观看
    日本精品免费一区二区三区| 69**夜色精品国产69乱| 国产妇女馒头高清泬20p多| 午夜精品一区二区三区在线播放| 日韩av在线第一页| 九色综合婷婷综合| 一区二区三区在线视频111 | www.日本在线视频| 国产精品手机视频| 麻豆蜜桃91| 久久成人精品一区二区三区| 国产日韩三区| 国产精品视频久久久| 免费在线成人av| 久久99精品国产99久久6尤物| 欧美亚洲国产另类| 91精品国产乱码久久久久久久久| 国产精品久久不能| 日韩欧美一区二区三区久久婷婷| 国产伦精品一区二区三区高清版 | 久久久精品免费视频| 欧美国产综合在线| 久久久久久久亚洲精品| 欧美在线视频观看免费网站| 国产精品久久久久久av福利 | 久久久久久久免费视频| 亚洲欧美丝袜| 国产在线一区二区三区播放| 免费不卡欧美自拍视频| 久久久人成影片一区二区三区 | 色噜噜狠狠狠综合曰曰曰88av| 欧美成人第一区| 中文字幕一区二区三区四区五区六区| 免费一级特黄特色毛片久久看| 欧美成在线视频| 黄色国产精品一区二区三区| 日韩在线www| 欧美一区二区三区……| 北条麻妃在线视频观看| 日本一区二区三区免费观看| 久久亚洲午夜电影| 亚洲精品一区国产精品| 丝袜美腿精品国产二区| 欧美在线观看一区二区三区| 日韩在线观看精品| 欧美亚洲第一页| 久久精品成人欧美大片古装| 欧美日韩亚洲第一| 亚洲一区不卡在线| 99精品国产一区二区| 欧美综合激情网| 亚洲精品欧美日韩| 九九热精品视频| 国产精品丝袜视频| 久久综合久久久久| 性欧美激情精品| 国产精品美女网站| 久久人人九九| 高清欧美精品xxxxx| 亚洲国产精品久久久久婷蜜芽| 国产精品视频在线免费观看| 久久人人爽人人爽人人片av高请| 日本欧美一二三区| 久久久久久国产精品久久| 久久天堂av综合合色| 国产成+人+综合+亚洲欧美丁香花| 国产精品亚洲精品| 国产一区视频观看| 中文字幕一区综合| 国产精品日韩在线观看| 日韩有码在线电影| 亚洲欧洲精品在线| 精品国产一区av| 青青青在线观看视频| 久久琪琪电影院| 欧美久久久久久久久久久久久| 欧美在线一区二区三区四| 久久这里只有精品99| 国产日韩在线视频| 欧美巨大黑人极品精男| 国产特级淫片高清视频| 久操成人在线视频| 国产精品主播视频| 人妻内射一区二区在线视频| 亚洲熟妇无码另类久久久| 久久久av网站| 777精品久无码人妻蜜桃| 午夜一区二区三区| 久久人91精品久久久久久不卡| 精品人妻少妇一区二区| 无码少妇一区二区三区芒果| 国产成人精品久久二区二区91| 国产深夜男女无套内射| 欧美在线视频一区二区三区| 亚洲精品天堂成人片av在线播放| 国产精品对白刺激| 精品国内产的精品视频在线观看| 麻豆一区区三区四区产品精品蜜桃| 国产精品国内视频| 国产伦精品一区二区三区精品视频 | 精品免费国产一区二区| 日韩中文在线不卡| 国产在线不卡精品| 久久99国产精品自在自在app| 日韩在线视频观看| 久久久欧美一区二区| 欧美诱惑福利视频| 亚洲高清视频一区| 精品激情国产视频| 久久国产精品精品国产色婷婷| 欧美亚洲国产精品| 日产国产精品精品a∨| 亚洲在线视频一区二区| 久久视频这里有精品| 欧美夜福利tv在线| 日韩欧美一区二区三区四区| 国产精品久久久久免费a∨| 国产一区二区三区奇米久涩| 日韩国产小视频| 日韩欧美亚洲天堂| 久久伊人91精品综合网站| 国产成人在线精品| 麻豆成人在线播放| 欧美在线性视频| 这里只有精品66| 欧美成人一二三| 国产精国产精品| 91久久精品国产91久久| 99伊人久久| 91成人综合网| 国产中文一区二区| 蜜桃av噜噜一区二区三| 国产日韩欧美亚洲一区| 日韩免费av一区二区三区| 日本久久久a级免费| 久久久久国产精品一区| 欧美激情乱人伦一区| 中文字幕一区二区三区四区五区人| 久久久精品网站| 日韩最新免费不卡| 国产精品免费在线| 国产精品狠色婷| 国产99视频精品免费视频36| 亚洲综合色av| 国产精品麻豆免费版| 国产精品久久久久久久av电影| 成人444kkkk在线观看| 一区二区三区视频| 成人做爰www免费看视频网站| 精品久久蜜桃| 日韩有码在线电影| 国产成人生活片| 久久福利视频网| 久久久精品视频在线观看| 久久精品91久久香蕉加勒比| 国产精品黄页免费高清在线观看 | 91精品国产91久久久久久不卡| 国产成人免费av电影| 久久久福利视频| 国产精品初高中精品久久| 日韩av高清在线看片| 国产日韩在线看| 国产成人精品视频在线观看| 亚洲免费在线精品一区| 精品午夜一区二区| 国模精品视频一区二区| 91精品久久久久久久久中文字幕| 成人h在线播放| chinese少妇国语对白| 久久久91精品国产一区不卡| 亚洲aaa激情| 国产欧美久久一区二区| 久久精品成人欧美大片古装| 欧美xxxx18性欧美| 一区二区三区视频| 欧美精品无码一区二区三区| 国内精品在线一区| 国产成人一区二区在线| 中文字幕综合在线观看| 精品一区久久久久久| 国产精品一区二区不卡视频| 97人人模人人爽视频一区二区 | 欧美中文字幕在线视频| 久久精品香蕉视频| 亚洲一区二区三区sesese| 国产日韩专区在线| 国产精品热视频| 欧美在线不卡区| 国产一区二区精品在线| 日韩中文在线视频| 欧美成人在线影院| 欧美交换配乱吟粗大25p| 国产欧美日韩亚洲| 国产精品青青草| 欧美久久久久久久| 99精品视频网站| 日韩在线视频网站| 日本视频久久久| 国产国产精品人在线视| 国产精品精品视频一区二区三区|