Mastermind Grading Format

15 Points Each:
  • "getGuess" code that allows a player to enter 4 colors into a list
  • code that generates a secret code of 4 colors using random.randint()
  • code computes exact matches correctly
  • code computes partial matches correctly
  • player can enter repeated guesses and get feedback from the program (program loops)
  • when player enters a correct guess, the game prints a congratulations and tells the player how many guesses it took

2 Points Each:
  • Provide clear instructions to the user
  • Appropriate error handling (allow user to re-input color until valid)
  • Is in a file called mastermind.py
  • Don't limit the player's # of guesses
  • Program ends (or restarts) properly when player finishes
(Total: 100 points)

5 Extra Credit Points Each:
  • allow the user to choose the number of colors, up to 10
  • allow the user to choose the number of slots in the secret code/guess