加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代寫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

    婷婷六月综合| 国产麻豆一区二区三区精品视频| 亚洲高清毛片| 中文视频一区| 人人鲁人人莫人人爱精品| 天天躁日日躁狠狠躁欧美| 欧州一区二区三区| 香蕉视频亚洲一级| aa国产精品| 中日韩免视频上线全都免费| 国产精品二区影院| 日本蜜桃在线观看视频| 牛夜精品久久久久久久99黑人| 午夜a一级毛片亚洲欧洲| 男人天堂久久| 国产精品久久占久久| 一本久久青青| eeuss鲁片一区二区三区| 欧美国产另类| 日本中文字幕视频一区| 国产夫妻在线| 国产亚洲在线观看| 丝袜av一区| 日韩精品成人| 中文字幕一区二区三区久久网站| 日韩三区在线| av免费不卡| 国产精品普通话对白| 青青久久av| 91午夜精品| 日本午夜精品| 国产一区二区视频在线看| 国产精品蜜月aⅴ在线| 欧美www视频在线观看| 黄色成人在线网站| 激情文学一区| 加勒比中文字幕精品| 日韩成人一区二区三区在线观看| 亚洲天天影视网| 三级久久三级久久久| 成人亚洲综合| 日韩精品免费观看视频| 欧美xxxx中国| 免费人成精品欧美精品| 91久久夜色精品国产九色| 亚洲午夜久久久久久尤物| 免费日韩一区二区三区| 极品一区美女高清| 在线视频亚洲欧美中文| 日韩伦理一区二区三区| 亚洲男人在线| 国产精品亚洲欧美一级在线| 在线看片一区| 日本欧美加勒比视频| 亚洲日本欧美| 在线看片一区| 中文在线播放一区二区| 一区二区三区毛片免费| 久久久免费毛片| 国内视频精品| 国产精品免费不| 亚洲人成网亚洲欧洲无码| 亚洲精品动态| 日韩一区免费| 中文字幕视频精品一区二区三区| 精品入口麻豆88视频| av不卡一区| 国产毛片精品| 91精品国产福利在线观看麻豆| 久久精品中文| 亚洲精品极品少妇16p| 波多野结衣在线观看一区二区 | 亚洲综合av一区二区三区| 成人av观看| 日本另类视频| 日本不卡一二三区黄网| **精品中文字幕一区二区三区| 久久99精品久久久久久园产越南| 亚洲日产av中文字幕| 国产精品一线| 不卡一区2区| 免费视频久久| www.com.cn成人| 久久精品国产亚洲aⅴ| 欧美激情视频一区二区三区在线播放| 国产一区二区三区精品在线观看| 日韩电影在线观看网站| 精品亚洲自拍| 午夜亚洲福利在线老司机| 国产欧美一区二区三区精品酒店 | 好看不卡的中文字幕| 亚洲综合国产| 国产一区一一区高清不卡 | 在线一级成人| 噜噜噜91成人网| 日韩精品影院| 99精品美女视频在线观看热舞| 日韩av中文字幕一区二区三区| 欧美日韩中文字幕一区二区三区| 国产精品婷婷| 欧美一级二级视频| 国产精品成人**免费视频| 成人中文在线| 亚洲免费综合| 欧美视频精品| 亚洲va久久久噜噜噜久久| 人人香蕉久久| 欧美黄色大片在线观看| 日日欢夜夜爽一区| 一本一道久久a久久| 日韩一级免费| 成人久久网站| 日韩不卡手机在线v区| 婷婷综合社区| 亚洲国产aⅴ精品一区二区三区| 国产精品igao视频网网址不卡日韩 | 日韩欧美视频在线播放| 亚洲天堂网站| 免费av一区| 天堂а√在线最新版中文在线| 亚洲欧美在线综合| 久久婷婷激情| 色综合桃花网| 日韩精彩视频在线观看| 怡红院精品视频在线观看极品| 九九久久国产| 丁香5月婷婷久久| 久久久久久夜| 欧美高清一级片| 在线国产一区二区| 久久91视频| 欧美调教在线| 一区二区三区四区日本视频| 欧美久久一区二区三区| 欧美午夜精彩| 成人国产在线| 欧美偷窥清纯综合图区| 日韩精品专区| 91精品国产自产在线丝袜啪| 蜜桃视频第一区免费观看| 一区二区在线| 99亚洲视频| 国内精品美女在线观看| 九九在线精品| 日韩成人综合网站| 美女午夜精品| 国产一区二区久久久久| 国产精品99久久免费观看| 日韩激情一区| 亚洲综合影院| 欧美13videosex性极品| 日韩一二三区在线观看| 国产资源在线观看入口av| 日韩福利电影在线| 美国三级日本三级久久99 | 色婷婷久久久| 久久精品伊人| 一级毛片免费高清中文字幕久久网 | 香蕉久久99| 日日夜夜免费精品| 欧美日韩国产综合网| 欧美日韩亚洲一区三区| 日韩经典中文字幕一区| 日韩一区二区三区高清在线观看| 免费视频最近日韩| 精品视频在线观看免费观看| 免费av成人在线| 久久av免费看| 久久久久久久| 美女午夜精品| 亚洲人www| 欧美综合二区| 九九九九九九精品任你躁| 伊人久久综合一区二区| 精品久久久久久久久久久aⅴ| 国产一区 二区| 欧美日韩国产综合网| 国产成人影院| 91精品韩国| 天天天综合网| 日韩欧美美女在线观看| 在线一区视频观看| 亚洲国产一区二区三区在线播放| 亚洲网站免费| 日韩在线理论| 黑人一区二区| 精品国产三区在线| 九九热这里有精品| 亚洲在线电影| 91亚洲无吗| 欧美精品国产一区| 日韩伦理在线一区| 欧美最新另类人妖| 久久在线观看| 六月丁香婷婷色狠狠久久| 蜜臀av一区二区在线免费观看| 狠狠一区二区三区| 欧美电影在线观看一区| 最新日韩一区| 视频一区在线视频|