Create the framework for a battleship game you need to


JAVA

You are to create the framework for a Battleship game. You need to create a 5x5 grid that represents the gameboard. "+" signs represent spaces that haven't been bombed. "O" represents spaces that have been bombed, but nothing was hit. "X" represents spaces where the player has bombed and hit something.

For example:
+++++ ++++O +++X+ +++X+ +++++

The user will enter a grid space by entering two integers that represent the X and the Y coordinates on the grid.

You will create a battleship that class that represents the ship. It will contain the data about it's own hits and will know when all of it's spaces have been hit and it is sunk.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create the framework for a battleship game you need to
Reference No:- TGS02608317

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)