Assignment You sank my battleship!! For this assignment you will be creating a modified version of battleship. The game will use an 8 X 8 grid to represent the playing space.

Assignment You sank my battleship!! For this assignment you will be creating a modified version of battleship. The game will use an 8 X 8 grid to represent the playing space. • At the beginning of the game the user will be asked to place three ships (Battleship size 4, Destroyer size 3, and Patrol Boat size 2) on the board. The user should indicate the starting position (in terms of row and column) and the direction (horizontal or vertical) that they want to place the ship. You should use the methods PlaceBattleship(), PlaceDestroyer(), and PlacePatrol() to either place the boats on the board or indicate that the ship cannot be placed at that location (either because it goes off the board or overlaps a ship that has already been placed0. • Once all three ships are placed the game begins. The user is prompted to enter a grid coordinate. After each entry the game will indicate whether the players shot resulted in a hit or miss or whether the player already fired at that location. • After each guess the game should display the board from the players perspective with * for unknown space, M for misses, and H for hits. • When all of the locations on a ship have been hit the user should be told ā€œYou sank my ______ā€ (use the name of whatever ship they sank). • The game ends when all of the ships have been sunk. The game should tell the user how many guesses it took to sink all three ships (guesses of the same location should only be counted once). will be looking for good program design. Therefore, the program should be broken into useful methods (with appropriate parameters). Most of the work should be done by methods and Main() should be as short as possible. please make sure all guidelines are strictly followed.

WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
šŸ‘‹ Hi, how can I help?
Scroll to Top