日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

    合肥圖文信息
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
  • 短信驗證碼 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        免费一区二区三区| 国产精品美女主播| 久久精品国产精品亚洲| 久久久噜噜噜久久人人看| 国产精品视频九色porn| 一区二区三区欧美激情| 亚洲无毛电影| 一个色综合导航| 国产精品一二三| 一区二区三区免费看| 香蕉免费一区二区三区在线观看| 国产在线精品二区| 久久久久久久久久久久久久一区| 欧美日本在线播放| 蜜乳av另类精品一区二区| 久久久久se| 国产精品www| 精品69视频一区二区三区| 亚洲自拍电影| 国内精品福利| 亚洲砖区区免费| 久久久久99精品国产片| 国产美女精品免费电影| 在线免费观看视频一区| 国产在线视频欧美一区二区三区| 国产精品magnet| 欧美有码在线观看视频| 欧美视频在线一区二区三区| 欧美精品18| 亚洲国产欧美精品| 欧美日韩国产精品一区| 久久亚洲国产成人| 亚洲电影下载| 国产欧美日韩另类视频免费观看| 日韩视频欧美视频| 国产精品免费看久久久香蕉| 日韩亚洲综合在线| 欧美午夜精品久久久久久人妖| 亚洲午夜精品国产| 亚洲激情在线激情| 激情婷婷亚洲| 久久久久久一区二区| 亚洲电影av| 国产欧美日韩综合精品二区| 蜜桃精品久久久久久久免费影院| 亚洲精品久久7777| 精品动漫一区| 亚洲三级免费电影| 尤物网精品视频| 91久久极品少妇xxxxⅹ软件| 亚洲激情六月丁香| 亚洲视频在线播放| 亚洲韩国日本中文字幕| 久久精品国产亚洲高清剧情介绍| 国产性天天综合网| 精品成人久久| 欧美一区2区视频在线观看| 亚洲精品久久视频| 狠狠久久婷婷| 亚洲无限乱码一二三四麻| 精品动漫3d一区二区三区免费版| 欧美另类人妖| 欧美三区在线| 国产精品va在线播放| 国产伦精品一区二区三区高清| 国产欧美视频一区二区三区| 亚洲黄色av| 久久综合精品国产一区二区三区| 亚洲日本欧美天堂| 欧美午夜三级| 亚洲精品乱码视频| 亚洲日本中文字幕区| 极品av少妇一区二区| 国产精品成人一区二区网站软件| 精品成人一区| 国内欧美视频一区二区| 亚洲国产精品va| 亚洲视频欧洲视频| 欧美福利一区二区三区| 亚洲一级二级| 欧美不卡视频一区| 国产日韩欧美综合| 国产精品r级在线| 久久人人爽国产| 母乳一区在线观看| 久久九九有精品国产23| 一区二区在线视频| 欧美一级视频免费在线观看| 亚洲影院在线观看| 国内精品视频在线播放| 好看的亚洲午夜视频在线| 亚洲风情在线资源站| 狠色狠色综合久久| 久久精品国产久精国产爱| 国产一区视频网站| 欧美日韩在线一区二区三区| 在线成人欧美| 久久精品国产综合精品| 欧美视频一区二区三区…| 久久综合激情| 亚洲综合日本| 欧美系列电影免费观看| 欧美激情精品久久久久久免费印度| 国产美女一区| 欧美一二三区在线观看| 午夜精品久久久久久| 禁断一区二区三区在线| 国产精品大全| 欧美日本一区二区高清播放视频| 老司机67194精品线观看| 欧美精品系列| 韩国一区二区三区美女美女秀| 中文一区在线| 亚洲黄色三级| 红桃视频一区| 国产精品九九| 一区二区三区福利| 欧美精品一区视频| 欧美日韩中字| 欧美激情中文不卡| 亚洲人妖在线| 久久国产精品72免费观看| 欧美日韩三区四区| 久久久精品国产免费观看同学| 欧美中在线观看| 一区精品久久| 狠狠干综合网| 久久亚洲私人国产精品va媚药| 亚洲精品欧美在线| 国产视频一区三区| 久久婷婷av| 99热免费精品在线观看| 亚洲区国产区| 欧美亚洲自偷自偷| 在线免费观看日本欧美| 欧美婷婷在线| 亚洲精品美女久久久久| 国产精品试看| 欧美色图一区二区三区| 老司机午夜精品视频在线观看| 欧美视频一区在线观看| 久久一区二区三区国产精品| 亚洲欧美综合网| 欧美亚洲在线| 日韩亚洲国产精品| 在线免费观看日韩欧美| 夜夜嗨一区二区| 一级日韩一区在线观看| 欧美精品久久一区二区| 亚洲一区二区欧美日韩| 亚洲免费视频观看| 国产一区二区三区无遮挡| 久久大逼视频| 99在线观看免费视频精品观看| 亚洲国产日韩在线一区模特| 国产精品久久久久久超碰| 亚洲国产合集| 亚洲乱码精品一二三四区日韩在线| 欧美激情视频免费观看| 欧美刺激午夜性久久久久久久| 国产中文一区二区| 国产精品免费视频xxxx| 欧美激情一区| 久久在线播放|