Question: C++ PROGRAMMING HELP Use the code I have now, I just need help on the functions and what they should be. Here is the prompt:
C++ PROGRAMMING HELP
Use the code I have now, I just need help on the functions and what they should be. Here is the prompt:
The user will first enter an integer value which will be used to seed the random number generator, this will ensure the generation of a reliable board. (Every time you start a new program and enter 1253 for the seed value, you should get the same ship layout). the 2-dimensional waterState array represents a game board, which has a certain number (6) of horizontal or vertical boats of length 5 on it. Initially all board spaces are set by initBoard to either W_UNK_BOARD or W_UNK_EMPTY. These values should be displayed by displayBoard to the user as #. (Both are hidden). The user will input a 2-value location to fire an attack. The attack centered on the square will expose and destroy everything on the vertical and horizontal line (this may be easier to explain by running the solution program). The game is over when either all ships are exposed (destroyed) or when the user exhausts the maximum number of turns (10).


Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
