Need help answering a homework question for Java.
The game consists of a mainboard grid made of multiple points that could use default values or user-defined dimensions, and the number of ships. The game consists of setting up the game grid, place random ships, and the player firing shots trying to guess the location of the hidden ships. The game should display the statistics of the game after each shot, such as the number of ships sunk, and the number of shots fired. The game ends once the player has successfully guessed the location of all the ships (sunk). The game must be completely functional and must have the following characteristics. Feel free to develop the logic as is best for you, just respect the methods’ names and structure.
Public static void main(String[] args){
New Board board = new Board(10,10,5);
board.show();
board.placeShips();
board.fire();
.
}//end of main
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here