Question: Create a game called LOCATE-ME ** Write the code necessary to have the game work. Create two arrays player1 and player2. Both 15 by 15
Create a game called LOCATE-ME
** Write the code necessary to have the game work.
Create two arrays player1 and player2. Both 15 by 15 char arrays.
Alternate between player 1 and Player 2.
** Game Setup
Have Player 1, see his array. Have the program ask them to set their array elements by choosing 8 cells in the array and selecting them with an x. ( Do not let player 2 see them do it )
Have Player 2, see his array. Have the program ask them to set their array elements by choosing 8 cells in the array and selecting them with an x. ( Do not let player 2 see them do it )
** Game Play
Alternate between players
Player 1 guesses and picks a cell, if player 2 has picked it(x), then it is marked P.
If player 1 picks correctly, they get another turn
If player 1 picks incorrectly, then it is now player 2 turn...
Player 2 guesses and picks a cell, if player 1 has picked it (x), then it is marked P.
If player 1 picks correctly, they get another turn
If player 1 picks incorrectly, then it is now player 2 turn...
*** End Game - Win
The first player to pick ALL the other players marked cells wins
In C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
