Question: IN JAVA LANGAUGE PLEASE! You are to create the framework for a Battleship game. You need to create a 5x5 grid that represents the gameboard.

IN JAVA LANGAUGE PLEASE!

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. Similar to how we did the TicTacToe assignment.

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!