The Crack the Code game is a deterministic three-digit deduction puzzle whose two fixed position clues reduce 1,000 zero-padded possibilities to one valid code: 507.
Open Crack the Code to read both clues, enter a candidate in three visible slots, and submit it. The game runs locally in your browser, accepts touch or physical-key input, and awards exactly 1,000 points for the correct code.
The most reliable approach is to solve the position clues before entering anything. Incomplete input is safe, but a second distinct wrong complete code deadlocks the run.

A Fixed Three-Digit Deduction Puzzle
This is one original, self-contained fixture rather than a daily feed, random generator, or rotating challenge. The two clue rows describe earlier guesses: 527 has two exact positions and no wrong-place digits, while 750 has no exact positions and three wrong-place digits.
The goal is to interpret text counts, not colors. “Exact” means the same digit appears in the same position. “Wrong place” means the digit exists in the code but at a different position. Together, the clues provide both a digit set and positional constraints.
Separate Exact and Wrong-Place Matches
Read each clue as two separate outputs rather than one blended total. The officially defined rows are:
| Earlier guess | Exact | Wrong place | What the row establishes |
|---|---|---|---|
| 527 | 2 | 0 | Two digits are fixed in position, while 2 is absent. |
| 750 | 0 | 3 | All three digits—7, 5, and 0—are present, but every one is displaced. |
The scoring order is important. The game first removes every exact position pair. It then compares the frequencies of the unmatched solution and guess digits, adding the smaller remaining count for each digit. A single solution position can contribute to only one count, so repeated digits cannot accidentally be counted twice.
For one worked scoring check, compare 057 with 507. The final 7 is an exact pair and is removed. The unmatched solution digits are 5 and 0, while the unmatched guess digits are 0 and 5. That leaves one wrong-place match for 5 and one for 0, producing 1 exact and 2 wrong place.
Derive and Submit One Deliberate Code
Use the clues in an order that turns a broad digit set into a specific three-digit candidate before you touch the controls.
- Read the 750 clue first. Its result is 0 exact and 3 wrong place. Therefore, 7, 5, and 0 all occur in the code, but none appears in the position shown by 750.
- Establish the full digit set. The answer has only three positions, and all three digits from 750 are present. That leaves the code’s digits as 7, 5, and 0; their order still needs to be determined.
- Apply the 527 clue. Because the digit set is already established, 2 is absent. The clue’s two exact matches must therefore be 5 in the first position and 7 in the third. The remaining 0 belongs in the middle, producing 507.
- Enter 507 from left to right. Tap or click 5, 0, and 7 on the ten-digit keypad, or press the corresponding physical number keys. The digits append to the three visible slots until they are full.
- Check every slot before submission. Press Backspace or Delete to remove the final entered digit. Use Clear guess to empty only the current input. Both controls let you repair an accidental entry without discarding the run.
- Submit the complete code. Press Enter or activate the submit control. A correct 507 submission awards exactly 1,000 points and completes the run. If you submit fewer than three digits, the game reports how many positions remain and records no wrong attempt.
Deriving the candidate first means the clue logic, rather than trial and error, supplies the answer. Your first submission can therefore be the deliberate 507 candidate.
Spend Wrong-Code Attempts Deliberately
The error rule counts distinct complete codes, not every press of the submit button. Each interaction has a defined outcome:
| Input or event | Game response | Error effect |
|---|---|---|
| Submit zero, one, or two digits | Reports how many positions remain | No wrong attempt is recorded |
| First distinct complete wrong code | Records the code and leaves the input repairable | One wrong code is used, but the run can continue |
| Submit the identical wrong code again | Returns the same state without changing feedback, score, or history | No additional error is consumed |
| Second distinct complete wrong code | Discloses the unique answer and freezes digit, deletion, clearing, and submit actions | The run deadlocks until it is reset |
| Submit the correct complete code | Awards 1,000 points and freezes the completed state | The run ends successfully |
After the first distinct wrong code, clear the field or edit the current input and try another candidate. Repeating the same wrong code is a no-op, so a rapid double-click or repeated Enter event cannot consume the next error. However, another distinct wrong code causes the terminal deadlock. Use Reset run to restore the entire game, including its attempt history and terminal status; the shared Restart control also begins with a clean state.
Prove That 507 Is the Only Candidate
Uniqueness does not rest on displaying one answer. The release test uses a separate oracle rather than accepting the production scorer and candidate enumerator as their own proof. Its independent procedure is:
- Define the literal clue table for 527 and 750.
- Implement exact-position removal separately from unmatched frequency maps.
- Zero-pad every integer from 0 through 999.
- Filter all 1,000 candidates against both clue rows.
- Return the one-element solution set containing 507.
The production result is then compared with that one-element oracle set. This exhaustive traversal proves that no other three-digit code satisfies both clues. It also confirms that leading zeroes are legitimate positions: 000 is checked just like 007 and 507.
The clue set is product-authored and bundled with the page. Once the page has loaded, the same clues and answer remain available offline. The page methodology also discloses the solution and proof, which makes repeated play straightforward rather than a fresh daily challenge. For an unaided attempt, cover that section before beginning.
Use Keyboard and Touch Controls Safely
Three visible slots and a ten-digit keypad make the input layout easy to check at a glance. Physical keys 0 through 9 append digits from left to right, Backspace or Delete removes the last digit, and Enter submits. Clear guess empties the current field without resetting the whole puzzle.
The interface does not depend on color. Clue counts appear in text, empty slots use underscores, distinct wrong codes are listed, and status copy reports entered digits and used errors. Keypad buttons have native semantics and touch-friendly dimensions, while the five-column layout fits a 390-pixel viewport without horizontal page overflow.
All puzzle activity stays in the browser. Code guesses, clue interactions, scores, and keyboard events are not uploaded, and there is no account, paid service, or network request. This keeps the game private and makes the finite clue set available offline after loading.
Score, Reset, and Replay Limits
Completion always produces exactly 1,000 points. There is no speed bonus, clue multiplier, partial credit, or penalty based on which first wrong code you tried. Solving without an error and solving after one repairable wrong code therefore receive the same fixed score.
That score is entertainment behavior, not a standardized measure of intelligence, reasoning ability, education, employment suitability, health, or psychological characteristics. Because both the fixture and its proof are disclosed, repeated sessions become trivial by design.
Both successful completion and a second-distinct-error deadlock are terminal states. Reset run or the shared Restart control restores a clean, playable state with the attempt history cleared. Check the two clue rows carefully before the first complete submission, because that is the cleanest way to reach the unique answer without spending the repairable error allowance.