Question: It needs to use: -6 classes -enumeration Thanks in advance! Using Python, make the game Mastermind 1. The code is a randomly generated, four digit

 It needs to use: -6 classes -enumeration Thanks in advance! Using

It needs to use: -6 classes -enumeration

Thanks in advance!

Using Python, make the game Mastermind 1. The code is a randomly generated, four digit number between 1000 and 9999. 2. The players take turns registering themselves by entering their name. 3. The players take turns guessing the secret code based on the hint that is offered. An x means a correct number in a correct position. An o means a correct number in an incorrect position. An *means an incorrect number (see interface section). 4. If the guess is correct, the current player wins and the game is over. 5. If the guess is incorrect, a new hint is generated and play continues. Interface Enter a name for player 1: Matt Enter a name for player 2: John **** Player Matt: Player John: ----, **** Matt's turn: What is your guess? 1111 Player Matt: 1111, xooo Player John: ----, **** John's turn: What is your guess? 4356 Player Matt: 1111, xooo Player John: 4356, 00** Matt's turn: What is your guess? 1234 Matt won! >

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!