Mastermind
Guess the secret color code in 10 tries.
Secret
1
2
3
4
5
6
7
8
9
10
10 turns left
About
The classic code-breaking game. Pick four colors. After each guess you get feedback: black pegs for correct color and position, white pegs for correct color in wrong position. Solve in fewer guesses to win.
How to use
- Pick four colors per row.
- Submit your guess.
- Read the feedback and refine.
FAQ
What's the optimal first guess?+
Donald Knuth showed the optimal first guess is 1122 (two colors twice each). It guarantees solving in at most 5 moves.
Can colors repeat?+
Yes by default. Toggle the option to disallow repeats for an easier game.