← Back to DailyClue

CODEBREAK strategy guide

CODEBREAK looks like a guessing game, but it rewards reasoning far more than luck. Every clue removes a large share of the remaining possibilities, and a player who keeps track of what each clue proves will usually finish well inside the eight tries. This guide describes a method you can follow every day.

Know the numbers

The code has four different digits and never starts with 0, so there are 9 × 9 × 8 × 7 = 4,536 possible codes. A guess can come back in only 14 different ways (every mix of green and yellow circles that adds up to four or fewer, except three green plus one yellow, which cannot happen). So one guess cannot identify the code, but a well-chosen guess can cut the field dramatically. Computer analysis of the classic version of the game, which allows a leading zero, shows that perfect play never needs more than seven guesses. You have eight, so the goal is not brilliance. It is to avoid wasting guesses.

Step 1: open with two guesses that share no digits

Start with 1234. For the second guess use four completely different digits, 5678. Add up the circles from both guesses (green plus yellow each time). That total is how many of the digits 1 to 8 are in the code. Because the code has four digits, the remainder must come from the two digits you have not tried yet, 9 and 0.

After just two guesses you therefore know how many of the four digits come from each group, and that is the most valuable fact in the early game. Any other pair of opening guesses that share no digits works just as well. The point is that overlap wastes information.

Step 2: decide which digits are in the code

Next, work out exactly which digits are present. Treat each group as a small puzzle. If 1234 returned two circles in total, then exactly two of 1, 2, 3 and 4 are in the code. Your third guess should mix digits from the groups, for example two from the first group, two from the second, so that the new total splits the possibilities again.

Keep a simple note for every digit: in, out or unknown. A guess that scores no circles at all is the best news you can get, because it proves four digits are out in one go. The keypad greys them out so you do not have to remember.

Step 3: find the positions

Once you know the four digits, only their order is left. There are at most 4 × 3 × 2 × 1 = 24 arrangements, fewer once the first digit cannot be 0, and the green circles prune that list quickly. Two techniques help:

Step 4: guess something that could still be right

Before you submit, check your guess against every earlier clue. Ask: if this were the code, would my previous guesses have produced exactly the circles I saw? If the answer is no, the guess cannot win, and it has to earn its place by teaching you something. A guess that is consistent with everything so far gives you a chance to win right now and still narrows the field if it is wrong. This single habit is the difference between steady and wasteful play.

A full example

Suppose the hidden code is 7 3 0 5. You do not know that, of course.

Now check candidate guesses against every clue so far. 7305 fits all three: 3 is not third (guess 1 had no greens), 5 is not first and 7 is not third (guess 2 had no greens), and against guess 3 it gives one green (the 0 in third place) and two yellow. Because it is consistent with everything, it is a good fourth guess, and in this example it happens to be correct.

Common mistakes

Practise on purpose

Play each day's puzzle, then look back at your guesses. Which one taught you least? Aim to make every guess earn its place. If you have not yet read the rules in full, start with how to play, and when you are ready, play today's puzzle.

Keep learning

How to play

DailyClue has three daily puzzles: Five Letters, Word Ladder and CodeBreak. You can play all three every day, but each game only once a day.

Once you finish a game it stays finished until new puzzles arrive at midnight India time (IST).

Read the full guide · Strategy tips · FAQ