Math logic puzzles

Use the clues to crack a secret code and check your answer on the page.

Three digits from 0 to 9, five clues.

Clues

True
Wrong
Not checked
Your code
Type your code, then press Check. Each digit is used once.

How to play

Each clue is a guess and tells you how many digits are right and well placed, and how many are right but misplaced. Find the one code that fits all the clues.

  • A clue that says nothing is correct rules out all its digits.
  • Test your code against every clue, not just one.
  • Check shows which clues your code satisfies.

Print with answers

The board on page one, the answers on page two.

Math logic puzzles

Math logic puzzles ask you to use clues and deduction to find an answer. In this crack the code puzzle, you test a secret three-digit code against five clues until one code fits them all.

How to read the clues

A clue may say one number is correct and well placed, correct but wrongly placed, or that nothing is correct. Each statement narrows the possibilities. Start with the clue that rules digits out, then use the remaining clues to check which digits can stay and where they can go.

A simple method for cracking the code

Make a small table with one row for each clue and columns for the code's places. Cross out digits and positions a clue forbids. Then compare what remains across the clues, updating the table as each new detail limits your choices. Keep going until one code is left.

Why each puzzle has one answer

A fair code puzzle should have one solution that satisfies every clue. Each puzzle here is checked against every possible code, so exactly one code fits all the clues. You can enter your guess and check it against the puzzle's answer.

Questions

Can digits repeat?

No. The rule used here is that a code cannot repeat a digit. When you test a possibility, use three different digits and discard any code with a repeated digit.

Is there always one answer?

Yes. Each puzzle is checked against every possible code, and exactly one code fits all the clues. That gives you a single answer to find by testing the clues together.

Can I print it?

Yes. You can print the page from your browser if you want to work through the clues on paper. The puzzle is free to use, and you do not need to sign up.

More puzzles

More ways to play