Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastermind

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.

Game Rules

  • 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.

How to Play

  1. Run the Python script.
  2. The computer will display its randomly chosen color combination.
  3. Enter your guess
  4. The program will output how many colors were correctly guessed in both position and color
  5. Guess again until you win or lose

Contact

For questions, reach out at solena_ananda@hotmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages