Project 8.1 Find the Ship 

Index Code Tester

 

Your objective is to create a Battleship-type game. The grid should be a minimum of 20 by 20 (400 possible locations) and you should have at least 5 ships.  Each ship is assigned to one location.  You must display the grid on the screen by writing it out. The game should meet the following minimum requirements:

 

____/10:  1.  The grid should be at least 20 by 20.

____/10:  2.  Each grid location should indicate either:(1) not guessed, (2) miss, or (3) hit.

____/10:  3.  The computer should randomly assign at least 5 ships to the grid.

____/10:  4.  The computer should keep track of and display the number of guesses.

____/10:  5.  The computer should indicate if your guess is a hit or a miss.

____/10:  6.  An image should be displayed depending on whether your guess is a hit or a miss.  You can be creative by adding a sinking ship or similar.  Alternatively, you could add sound to indicate a hit or a miss.

____/10:  7.  When the player has sunk all the ships, the number of hits and misses should be displayed.

____/10:  8.  A reset button should enable the player to start a new game.

____/10:  9.  The user should guess by entering the row and column number. You must show the row and column numbers on the grid.

____/10:  10.  A "cheat" button should enable the user to display the locations of the ships.

 

You will receive extra credit for any features beyond those minimum requirements.  for example, you could indicate how far from the target the guess is.