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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started