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:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.