?
?
?
?

Crack the Code

A two-player logic game — you vs the CPU.

1

Think of a secret number

Pick a 4-digit number where all digits are unique (e.g. 3 8 1 5). No repeats. Keep it secret — the CPU will try to guess it.

2

Your turn: guess the CPU's number

The CPU has also picked a 4-digit number with unique digits. You go first — enter your guess and get feedback after each attempt.

3

Understand the feedback

Correct digits

How many digits in the guess exist in the secret number — regardless of position.

Correct places

Of those correct digits, how many are also in the right position. Always ≤ Correct digits.

Example

Secret:3 8 1 5·Guess:3 5 7 1
3 correct digits (3, 5, 1)1 correct place (3 is in position 1)
4

CPU's turn: give honest feedback

After your guess, the CPU will guess your number. Compare its guess to your secret and report the correct digits and correct places honestly. It will catch you if you cheat.

🏆

First to crack the code wins

Whoever guesses the other's number first wins. Use logic, eliminate possibilities, and don't give up.

The CPU is already judging your strategy.