Mastermind
Crack the secret color code in this classic deduction puzzle. Use black and white peg feedback after each guess to logically narrow down the hidden sequence. Three difficulty levels with increasing color counts and fewer allowed guesses.

Puzzle
Mastermind
๐ฏ Mastermind
Crack the secret color code in this classic deduction puzzle. Use black and white peg feedback after each guess to logically narrow down the hidden sequence. Three difficulty levels with increasing color counts and fewer allowed guesses.
๐ How to Play
Tap a color from the palette to fill the selected peg slot, then press CHECK to submit your guess. A black peg means the right color in the right position; a white peg means the right color in the wrong position. Crack the code before you run out of guesses!
About this game
Why play Mastermind online?
Mastermind is a free puzzle game that runs in your browser. No download, no account โ just open it and play on phone or desktop.
Quick tips for better runs
- Play one short practice round first so the controls feel automatic.
- Use fullscreen when you want cleaner focus and fewer accidental scrolls.
- After a run ends, try a related game in the same style instead of leaving the site.
Good session fit
Mastermind works well as a quick browser session. When you are done, jump into a similar free game from the same category.
โญ Features
- โ 100% free โ no purchases, no paywalls
- โ Plays directly in your browser โ no download required
- โ Works on desktop, tablet, and mobile
- โ Smooth 60fps HTML5 Canvas gameplay
- โ Your high scores are saved locally
- โ No registration or account needed
โ Frequently Asked Questions
How does the feedback work in Mastermind?
After each guess you get small pegs as feedback. A dark peg means one of your colors is exactly right โ correct color AND correct position. A light peg means a correct color is in the wrong position. No peg means that color is not in the secret code at all.
Can colors repeat in the secret code?
Yes! The secret code can contain the same color more than once. For example, Red, Red, Blue, Green is a valid code. This makes Mastermind tricky โ watch the feedback carefully to avoid over-counting repeated colors.
What is the best opening strategy for Mastermind?
Start with a guess that uses four different colors to maximize information. Then use the black and white peg counts to eliminate possibilities. On Medium and Hard, try to cover as many colors as possible in your first two guesses before committing to a theory.