The classic code-breaking board game — a secret 4-color code is randomly generated and you have 10 tries to crack it. After each guess, you get black peg hints (right color, right position) and white peg hints (right color, wrong position).
How to Play
Select a color from the palette at the bottom.
Click the 4 pegs in the current row to fill in your guess.
Click Guess to submit. Hints appear on the right.
Use the hints to narrow down the code.
Crack the code in 10 guesses to win!
Controls
Click palette color — Select a color to place
Click peg slot — Place selected color
Guess button — Submit your row
Clear button — Clear the current row
Frequently Asked Questions
Yes — by default the secret code can contain repeated colors, matching classic Mastermind rules.
A black peg means you have the right color in the right position. A white peg means you have the right color but it's in the wrong position. The pegs don't indicate which slot they refer to.
There are 6 colors. The secret code is 4 pegs long, chosen from these 6 colors with repetition allowed.