Crack the Code

Home / Guides

Walkthrough

Solving a 4-digit Hard code, step by step

Seven clues, four digits, zero luck. This is the size of every Daily Challenge, so it's worth getting comfortable with.

⏱ 5 min readIntermediate

The puzzle

9805One correct & well placedOne number is correct and well placed
5092NothingNothing is correct
9375Two wrong spotTwo numbers are correct but wrongly placed
7369Two wrong spotTwo numbers are correct but wrongly placed
1206One wrong spotOne number is correct but wrongly placed
4359One wrong spotOne number is correct but wrongly placed
1062One wrong spotOne number is correct but wrongly placed

Try it yourself first if you like. The answer is at the bottom.

Step by step

  1. Clear the board. 5092 says nothing is correct: 5, 0, 9 and 2 are out.
    5092NothingNothing is correct
  2. Resolve the fork. 9805 has one digit in its exact spot. 9, 0 and 5 are out, so it's 8, in the second spot.
    9805One correct & well placedOne number is correct and well placed
  3. Two for one. 9375 has two correct digits. With 9 and 5 out, they must be 3 and 7. Both are wrongly placed: 3 is not second, 7 is not third.
    9375Two wrong spotTwo numbers are correct but wrongly placed
  4. Squeeze out a digit. 7369 also has two correct digits. 3 and 7 are already in and 9 is out, so 6 is out. And from their spots here: 7 is not first, 3 is not second.
    7369Two wrong spotTwo numbers are correct but wrongly placed
  5. Find the last digit. 1206 has one correct digit. 2, 0 and 6 are out, so it's 1, and 1 is not first.
    1206One wrong spotOne number is correct but wrongly placed

You now know the four digits are 3, 8, 1 and 7, with 8 in the second spot. Time to place the rest:

DigitNot allowedFree spots
71st (7369), 3rd (9375)4th only
11st (1206)3rd (4th is now taken)
32nd1st, the only one left
3817

The last two clues, 4359 and 1062, were never needed. Run 3817 past them anyway: in 4359 only 3 is in the code, and it's not in the second spot ✔. In 1062 only 1 is in the code, and it's not in the first spot ✔.

What to take away

Going Expert? Five digits and nine clues use exactly the same method, with one more “two wrong spot” and a “three wrong spot” clue to untangle. Beat it 25 times for the Expert Master achievement.

Put it into practice

Crack the Code is free on iOS and Android. A new Daily Challenge waits every day.

App Store Google Play

Keep reading