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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started