🔗 Play Mastermind

Play Mastermind

Can you crack the code?

Mastermind is a game of deduction. A hidden code uses four colored pegs. After each guess, clues tell you how many colors are in the right place and how many are in the code but in a different place.

How to play

  1. Build a four-color guess from the palette. Repeated colors are allowed.
  2. Press Check code to submit your guess.
  3. A dark clue means the color and position are both correct; a light clue means the color is correct but in another position.
  4. Crack the code in ten guesses. You can also use keyboard keys 1–6, Backspace, and Enter.

Your current code and best solve are saved in this browser.