Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Battleship program game in C++. It will only have one row containing 16 squares

ID: 3561674 • Letter: B

Question

Battleship program game in C++. It will only have one row containing 16 squares (columns). Player needs the ability to insert a boat3 (three squares), boat2 (two squares) and a boat1 (one square) into the row and then attempt to sink the computers three ships before the computer sinks your three ships. You then play by naming a square to blow up on your oppopents row and they have to tell you whether it Missed, Hit or Hit and Sunk a ship. The computer's ship placement is random and that you can actually play the game to a win or loss.

Can't use a vector, arrays or objects.

Explanation / Answer

Battleship.java

Java Code:

Board.java

Java Code:

Ship.java

Java Code:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote