Question: Write a program with the following specifications: The program should simulate a one-player game of battleship. (See earlier activities/assignments for reference.) The user should be
Write a program with the following specifications:
The program should simulate a one-player game of battleship. (See earlier activities/assignments for reference.) The user should be able to specify the board size and the number of ships that will be placed on the board. (Ships should be of varied sizes.) Once the board is generated with random ship placement, the user should be able to specify coordinates and have the game show them whether a "hit" or "miss" has occurred and display the resulting screen. Additional rules may be specified as needed.
Program structural requirements:
The board will be constructed with a dynamic array
The ships will be constructed with a linked list
C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
