Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

=+2 Why are so many countries bothered by their brain drains?

Answered: 1 week ago