Crack the Code
Mastermind-style code breaking. Guess the 4-color code. Black pegs = correct color & position. White pegs = correct color, wrong position. 8 attempts.
How to Play Crack the Code
Click colors from the palette to fill your guess (4 slots).
Click a filled slot to remove it. Click ✓ to submit your guess.
● = correct color, correct position. ○ = correct color, wrong position.
Crack the code in 8 guesses or fewer. Colors can repeat!
Tips to Improve Your Score
- Start with a diverse guess to test which colors are in the code
- Use the feedback systematically — black pegs mean those positions are locked
- If you get 0 pegs, eliminate those colors entirely
- Try swapping positions of colors that got white pegs
Frequently Asked Questions
How do you play Crack the Code?
The computer has chosen a secret 4-color code (colors can repeat). You have 8 guesses. After each guess, you get feedback: black pegs (●) = correct color in correct position, white pegs (○) = correct color in wrong position. Use deduction to crack the code.
What's the best strategy?
Start with a guess that uses 2-3 different colors to test which ones are in the code. Use subsequent guesses to narrow down positions. Pay attention to the number of black vs white pegs — they tell you how close you are.
Can colors repeat?
Yes, the secret code can contain repeated colors. This makes the puzzle more challenging than the original Mastermind game where colors were unique.
About the Crack the Code
The Crack the Code is one of our most popular brain training exercises. Designed to test and improve your cognitive abilities, this game provides instant feedback on your performance.
Regular practice with this type of cognitive exercise can help improve your mental processing speed, accuracy, and overall brain health. We recommend practicing for 10-15 minutes daily for the best results.
Your scores are saved locally on your device, allowing you to track your progress over time. Challenge yourself to beat your personal best with each attempt!