Question: JAVA. CONSOLE Create a two-dimensional array that can capture input from the user and deploy battleship types according to the rules of the game. Battleships

JAVA. CONSOLE

Create a two-dimensional array that can capture input from the user and deploy battleship types according to the rules of the game.

Battleships should not touch each other.

It should be visible on your screen as a result after launching the program and entering the ships.

Ships can be shown as X. Sea can be shown as ~.

There is no neccesary to create computer interaction or something like full game, only part where is drawn ocean with user possibility to deploy ships.

Total ships:

4 ships of size 1

3 ships of size 2

2 ships of size 3

1 ship of size 4

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!