Question: Use python Mastermind: This game is traditional a two-player code breaking game. One player (i.e., the codemaker) creates a secret code of four colored pegs.

Use pythonUse python Mastermind: This game is traditional a two-player code breaking game.One player (i.e., the codemaker) creates a secret code of four colored

Mastermind: This game is traditional a two-player code breaking game. One player (i.e., the codemaker) creates a secret code of four colored pegs. The secret code can be made up of any combination of six options: Red, Green, Yellow, Purple, Black, or Orange and can include multiples of any color (e.g., Orange, Orange, Orange, and Black). The codebreaker attempts to guess the pattern (both in color and order) within 10 "tums" guesses. Instructions: Create a python program that simulates the codebreaker side of the game. The "codemaker" player side will be stored within the program. The program will interact with the user by asking the user to enter a guess. The program will provide feedback on the guess. The feedback is summarized in the able below Situation Feedback Peg of correct color placed in correct Indicate it is correct by replicating the peg color and location location Peg of correct color but incorrect location Use a white pirn Wrong color peg Left blank (i.e. ) The program should also calculate a "score". The codemaker gets one point for each guessa codebreaker makes. The score for the player, the codebreaker, should be shown as a negative number Color Pegs Notation: Color Peg Notation in Program Red Green Yellow Purple

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!