Mastermind
Guess the secret color combination.
Play Mastermind with a secret combination of four or five colors. Choose the attempt limit, allow or forbid duplicates, analyze black and white clues, and try to find the code before the final guess.
Choose the options, then start a game.
Current combination
History
Black = right color in the right place. White = right color in the wrong place.
Quick explanation
Build your guess by selecting the colors, then submit it. After each attempt, the clues show how many pegs are correct: a black peg means the right color in the right position, and a white peg means the right color in a different position.
Compare your attempts to eliminate possibilities and gradually find the secret combination.
Try this too
Want another deduction game?
Try Minesweeper to analyze the numbers in a grid and identify the cells that hide mines.
Additional information
How to play Mastermind?
Build a guess by choosing colors from the palette, then submit it once every position is filled.
After each attempt, black and white clues help you compare your guess with the secret combination.
What do the clues mean?
A black peg means the right color is in the right position.
A white peg means the right color is present in the secret combination, but placed elsewhere.
The clues give a total: they do not directly show which positions are correct.
Game options
Before starting, you can choose the combination length, the number of attempts, and the duplicate rule.
When duplicates are allowed, the same color can appear more than once. When they are forbidden, each color can only be used once in the combination.
How the game works
Each submitted guess is added to the history with its colors and clues.
Use previous results to eliminate possibilities, confirm some colors, and test new positions.
End of the game
You win when you find the exact secret combination.
If all attempts are used without finding the solution, the game is lost and the secret combination is revealed.
You can also give up an ongoing game to reveal the solution and start again.
Strategy tip
Start by testing several different colors to identify which ones may belong to the secret code.
Then move confirmed colors around to separate correct positions from colors that are only present.
Data and privacy
The game runs directly in your browser. The secret combination, guesses, and history are not sent to a server.
Limits and reuse
AppErgo tools are provided free of charge for practical and informational purposes. Although care is taken in their design, a result may be incomplete, unexpected or incorrect. Before relying on a result for any important use, check it using an appropriate method.
To report a bug in the tool, you can use the dedicated bug report form.
Results produced by AppErgo tools may be copied and reused freely. When publicly reusing a result, a method or an AppErgo page, a link to the relevant page is appreciated.
Unless otherwise stated, AppErgo texts, images, visual elements, scripts, templates and internal components remain the property of AppErgo.
For any other request, you can contact the webmaster.