Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You could do a game like master mind: using the first five letters of the alphabet, the computer picks a three letter sequence (such as

image text in transcribed
You could do a game like "master mind": using the first five letters of the alphabet, the computer picks a three letter sequence (such as "BCCt or AEB The player tries to guess the three letter sequence. The computer responds to guesses to clues by telling the player how many letters guessed are in the right place, and how many letters are correct, but in the wrong place. Example of game play (where the computer sequence is "AEB" Using the letters from A-E, guess my three letter sequence: Your guess: CDE You have 0 letters in the right place, and 1 letters in the wrong place. ou have i lattss in the right pia guess: ABC You have 1 letters in the right place, and 1 lettere in the wrong place Your guess: AED You have 2 letters in the right place, and 0 letters in the wrong place Your guess: AEB congratulations, you have guessed my sequence. 1. Have the program ask for the players name, and use that name when asking the player to make a guess or congratulating the player 2. Limit the number of guesses allowed, and if the player cannot guess the code in that number of guesses, the player loses the game. (worth two upgrades if you tell the player how many guesses are left) 10:51 AM 11/7/2017 3. Increase the secret sequence to four letters long

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

More Books

Students also viewed these Databases questions