Play the classic Mastermind code-breaking game online for free. Crack the secret color code in 10 tries. Choose from Easy or Hard mode. No downloads, no signups — just pure logic fun.
Black peg = correct color in correct position. White peg = correct color in wrong position.
Mastermind is a classic code-breaking game invented in 1970. The goal is a guess a hidden color code in a limited number of attempts. After each guess, you receive feedback in the form of black and white pegs that help you narrow down the solution.
A black peg means one of your guessed colors is both the correct color AND in the correct position.
A white peg means one of your guessed colors is correct but it is in the WRONG position.
You have 10 attempts a guess the correct 4-color code.
In Easy mode, the secret code uses 4 different colors with no repeats. In Hard mode, colors can be repeated, making it much more challenging.