This is a simple Python Mastermind like game, a school exercise, where players try to guess a secret combination of colors chosen by the computer.
- The computer randomly selects a combination of 4 colors from the following list:
- Red
- Yellow
- Blue
- Green
- White
- Black
- The player makes a guess by entering their own combination of 4 colors.
- Feedback is provided based on the guess:
- Correct Color & Position: The number of colors guessed correctly and in the correct position.
- Correct Color but Wrong Position: The number of colors that are correct but in the wrong position. The players have acertain number of tries allowed.
- Run the Python script.
- The computer will display its randomly chosen color combination.
- Enter your guess
- The program will output how many colors were correctly guessed in both position and color
- Guess again until you win or lose
For questions, reach out at solena_ananda@hotmail.com