EXTRA CREDIT BATTLESHIP

In this project I built a two-player version of the classic board game Battleship! In this version of the game, there are multiple ships with the  classic names of an Aircraft with a length of 4 places , the Destroyer (3) , the Submarine (2)  and the Cruiser(1)  on a 8×8 grid. The player will have 8 bombs to try to hit the ships every time the player hits a ship will receive an extra bomb. The program is below:

1 2 3 4 5 6 78
10

11

12

14913

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(this screenshot is after I made a change of the board)

111