What Is Crack the Code?
Crack the Code is a free, Mastermind-style logic puzzle on ReflexBenchmark. A hidden sequence contains four colored pegs chosen from six colors. Your job is to work out both which colors appear in that sequence and which positions they occupy. After each complete guess, the game gives two feedback numbers to help you narrow the possibilities.
You have up to ten different guesses to find the exact arrangement. A correct solution has all four colors in their correct positions, not merely four colors that happen to be in the answer. The challenge rewards careful use of evidence: every guess can test a hypothesis, and every new feedback result can rule out combinations that no longer fit.
The game works entirely in your browser and uses the same four-position, six-color rules for each attempt. It is a recreational deduction exercise, not a standardized intelligence test or a clinical measure of reasoning ability.
How to Play the Four-Color Code Game
- Start a new game. Select Start Test. The page generates a hidden four-color code and opens the first of ten possible guesses.
- Choose a position. Select one of the four empty slots. The highlighted slot is where the next color will go.
- Fill the code. Tap one of the six colored buttons. The selection fills the active slot, then advances the selection to the next position. You can select an earlier position to change its color before submitting.
- Submit a complete guess. The Submit Guess button is available once all four slots are filled. Incomplete guesses do not count.
- Read both feedback numbers. The history shows how many pegs are Exact and how many are Misplaced. These counts tell you what matched, but not which individual pegs caused the matches.
- Adjust the next guess. Use previous feedback to eliminate inconsistent colors and placements. The game will reject a duplicate of an entire guess you already submitted.
- Finish or use all ten guesses. You win as soon as all four pegs match exactly. Otherwise the round ends after guess ten, with a score of zero.
Unlike a reaction-time test, this puzzle is not about tapping as quickly as possible. You can take time to think between guesses, although the result also shows a recorded time figure. The number of guesses you need to solve the code determines the score.
Understanding Exact and Misplaced Feedback
The two numbers in each feedback row are separate. Exact counts positions where your submitted color and the hidden color are identical. Misplaced counts additional correctly chosen colors that belong somewhere else in the code. A single peg occurrence cannot be counted as both exact and misplaced.
The easiest way to interpret the result is to account for exact matches first. Remove those positions from the comparison. Then look at the remaining guessed colors and the remaining hidden colors. Any matching color occurrences in this smaller group count as misplaced, with each occurrence used only once.
Suppose the hidden code is Red – Red – Blue – Green and your guess is Red – Blue – Red – Green. Position one is exactly Red, and position four is exactly Green, so the feedback has 2 Exact.
In the two unmatched positions, your Blue and Red are both present in the hidden code but have swapped places. That gives 2 Misplaced. The full feedback is therefore Exact 2 · Misplaced 2.
Now suppose your guess is Red – Red – Red – Red against that same hidden code. Only the first two Reds can match: the feedback is 2 Exact · 0 Misplaced, not four color matches. Extra copies of a color do not magically create extra matches.
These are examples to explain the rule, not a way to reveal the secret code in your current game. Your real history shows feedback calculated from the exact code and guesses in your own session.
Are Repeated Colors Allowed?
Yes. The hidden code may contain the same color in two, three or even four slots. Your guess may also repeat colors. This matters because a strategy that assumes every peg is a different color can misread the evidence and rule out a possible answer too early.
Six available colors and four positions create 6 × 6 × 6 × 6 = 1,296 possible ordered codes when repetition is allowed. The position order matters: Red–Blue–Green–Yellow is a different code from Yellow–Green–Blue–Red. The game selects one hidden code for each new round and keeps it fixed while you make guesses.
The rule about not repeating a guess refers to submitting the same entire four-slot arrangement twice. Reusing a useful color in a different arrangement is allowed and is often essential. If the game displays an “Already guessed” message, change at least one position before submitting again.
How the Crack the Code Score Is Calculated
Your score depends on whether you solve the hidden arrangement and how many submitted guesses you used. A solved puzzle earns 11 minus your number of guesses in logic points. An unsolved puzzle always earns 0 points, even if your final guess has several correct colors or positions.
The first-guess solution earns 10 points. Solving on guess three earns 8; solving on guess six earns 5; and solving on your final, tenth guess earns 1. There is no separate bonus for fast thinking, and a partial solution does not earn a fraction of the final score.
You submit five different guesses. The fifth guess matches all four positions. Your score is 11 − 5 = 6 logic points. If you instead reach your tenth guess without four exact matches, the result is 0 points, regardless of the feedback history.
The result panel also shows how many guesses you used, whether the code was solved and the time recorded across the submitted guesses. Those are supporting details; the saved primary score is the logic-points number.
Scores should only be compared between attempts using equivalent rules. Because a new hidden code is generated for each game, the exact sequence and the deductions needed may differ. A single high or low result does not establish a fixed reasoning ability.
What the Result Graph Actually Shows
At the end of a game, the purple bar graph shows the number of exact-position pegs in each submitted guess. It can contain anywhere from one to ten bars, depending on how many guesses you made. Each bar represents a recorded guess from your actual session, on a scale from zero to four exact matches.
For instance, if your five guesses contained 0, 1, 2, 1 and finally 4 exact matches, the graph follows those five counts. A rising line of reasoning is not guaranteed: you can have fewer exact matches on a later guess while testing a more informative color combination. The graph shows what happened, not whether every step of your strategy was wise.
The downloaded share card is supplied with those same guess-by-guess counts rather than a made-up trend. If an optional ranking is pending, the page may not yet have enough comparable recorded attempts to display a percentile. An accepted saved score confirms that the site received the attempt; it is not proof of the player's identity, independent reasoning or an official mental-ability rating.
A Practical Strategy for Finding the Hidden Code
Good deduction starts with treating feedback as constraints instead of as vague hints. After each attempt, ask what must be true for that feedback to be possible. Then construct your next guess to distinguish between the remaining possibilities.
- Use the first guess deliberately. A guess with several different colors can test whether those colors appear; a repeated-color guess may help probe multiplicity. Neither opening is automatically best for every hidden code.
- Separate presence from position. A misplaced match suggests that a color belongs in the solution but is not in that particular slot. Keep track of both conditions.
- Count duplicates cautiously. If a color appears several times in your guess, remember that the feedback cannot credit more occurrences than actually fit the code.
- Compare against all earlier guesses. A possible code must explain the feedback of every submitted guess, not just your most recent result.
- Choose informative changes. Changing all four positions at once may make it harder to understand why the feedback changed. Controlled comparisons can sometimes isolate useful facts.
- Do not submit the same arrangement again. The game rejects exact repeated guesses, and even without that rule, an identical guess would provide no new evidence.
There is no requirement to memorize the entire history: the previous rows remain visible during the game. Use them as a working record, especially when multiple copies of a color are still possible. If you're stuck, write down a few candidate codes and test which ones are consistent with every exact/misplaced pair you have seen.
Common Mistakes When Solving Color-Code Puzzles
The most frequent conceptual error is mixing up an exact match with a color-only match. Feedback does not tell you the location of a misplaced peg, so moving a color to a different slot is a hypothesis, not a guaranteed solution. Another error is assuming a particular color occurs only once. Repetition is part of the rules and must be considered throughout the round.
Also avoid interpreting the exact-position bar chart as a complete measure of progress. A guess with fewer exact matches might still eliminate more candidate codes. The chart summarizes the visible outcome of the guesses; it does not measure the information gained from each one.
Finally, remember that a higher score comes from solving in fewer guesses, not rushing the interface. A fast string of random guesses can use up your ten attempts without narrowing the possibilities. Taking a moment to compare earlier feedback can be more useful than moving quickly.
What This Logic Puzzle Can and Cannot Tell You
Crack the Code is a structured way to practise comparing hypotheses, retaining constraints and updating a plan after new information arrives. You may enjoy tracking whether your strategies become more consistent over repeated games. But performance can also change with puzzle difficulty, practice, distractions and familiarity with the rules.
It is not an IQ test, a diagnostic executive-function assessment or a validated population benchmark. The site can check the internal consistency of the guesses and score it receives, but it cannot know whether someone consulted notes, used a solver or received help. Treat the result as a game score specific to this rule set.
The interface uses colors as its main distinguishing cues. Differences in display calibration and color-vision needs can affect how easily players recognize the pegs. If you find some colors hard to distinguish, that is an interface limitation rather than evidence about your deduction skills.
Explore Related Logic and Reasoning Tests
Prefer a different type of thinking puzzle? These ReflexBenchmark activities use distinct rules and scoring systems:
- Nonogram Puzzle - use row and column clues to reveal a hidden grid pattern.
- Zebra Puzzle - combine written clues and constraints to work through a logic grid.
- Pattern Recognition Test - identify missing pattern pieces across several rule families.
- Cognitive Reflection Test - answer seven reasoning questions and review the explanations.
The scores from these activities are not interchangeable. Choose the puzzle style you want to practise rather than treating them as a single measure of intelligence.
Frequently Asked Questions
How many guesses do I get in Crack the Code?
You can submit up to ten complete, different four-color guesses. A round ends immediately when all four positions are exact or when the tenth guess is used.
Can the hidden code contain the same color more than once?
Yes. The game chooses four positions from six possible colors and allows repetition. You can also repeat colors in your submitted guesses.
What is the difference between Exact and Misplaced?
Exact means a peg has both the right color and the right position. Misplaced means an additional peg has the right color but is in the wrong position. Each color occurrence counts at most once.
How do I calculate my logic-points score?
If you solve the code, subtract the number of guesses used from 11. For example, a solution on guess four earns 7 points. If you do not solve it in ten guesses, the score is 0.
Why does my result graph sometimes go down?
Each bar shows exact-position matches for that particular submitted guess. A later guess may deliberately rearrange colors to test a theory and therefore have fewer exact matches.
Why won't the game accept my guess?
You must fill all four slots before submitting. The game also rejects an entire four-color arrangement that you already submitted; change at least one position and try again.
Is Crack the Code an IQ test?
No. It is a recreational deduction game with its own rules and score. It is not standardized or suitable for diagnosing intelligence or cognitive health.