Colour Code · Solving guide

Colour Code: open with a repeat, not four different colours

Colour Code is one of the nine daily league games and it is scored on guesses, so the opener carries more weight than any move that follows it. Most players open with four different colours, on the sensible-sounding logic that four questions beat three. It is the wrong first move, and the reason is not a matter of taste. A code can hold the same colour twice, and four different colours cannot ask about that.

What a peg beside your guess means

The hidden code is four pegs long and drawn from six colours, numbered 1 to 6 on the board. A colour may appear more than once. You have eight guesses.

After each guess the board answers with small pegs. A filled peg means one of your pegs is the right colour in the right spot. A hollow peg means you have a right colour in the wrong spot. The answer never says which of your four pegs it is talking about, and it never points at a position.

Here is the part that decides the whole guide. A colour is credited only as many times as it genuinely appears in the code. Guess 1-1-2-2 against a code of 1-3-4-5 and you get a single filled peg, not two, because the code holds one purple and you asked about two. The count is capped by reality, which is exactly what makes a repeated peg a measuring instrument rather than a wasted slot.

Four different colours only ask what is present

An opener of 1-2-3-4 asks four yes-or-no questions: is purple in the code, is gold, is green, is red. It cannot ask how many. Whether the code holds one purple or two, that opener returns the same peg for purple either way.

That matters because repeats are the normal case, not the exception. The generator builds a code as four different colours, or as one pair, or as two pairs, and it never uses the same colour three times. Of the 1,170 codes it can produce, 810 contain a repeated colour. That is 69 of every 100 boards. It gets worse as the board gets harder: the two easiest difficulty bands always give you four different colours, while the two hardest always give you two pairs.

The picture below is the whole argument in one frame. The codes 1-1-2-5 and 1-6-2-5 are both codes the game can set. Open with 1-2-3-4 and both answer with one filled peg and one hollow peg. You cannot tell them apart, and you have spent a guess finding that out. Open with 1-1-2-2 and the first answers with three filled pegs while the second answers with two. The doubled purple counted the purples for you.

Two hidden codes shown as columns. The left is purple, purple, gold, slate, written 1-1-2-5. The right is purple, teal, gold, slate, written 1-6-2-5. Against the opener 1-2-3-4 both return one right spot and one right colour, so the results are identical. Against the opener 1-1-2-2 the left returns three right spots and the right returns two, so the results differ.
Two codes the game can set. One opener sees them as the same board, the other separates them at once.

A board solved in three

Take 1-1-2-5 as the hidden code and open with 1-1-2-2. The answer is three filled pegs and no hollow ones. Three of your pegs are right and in place, and nothing you played is merely sitting in the wrong slot. Of the 1,170 codes the game could have set, 16 survive that.

The second guess changes one peg and leaves the rest alone: 1-1-2-3. The answer is three filled pegs again. Nothing improved and nothing broke, so the peg you moved is not the one that was wrong before, and green is not the missing colour. Sixteen candidates fall to three, and those three are 1-1-2-4, 1-1-2-5 and 1-1-2-6. The first three pegs are settled and the last one is red, slate or teal.

Now pick one. Guess 1-1-2-5 and the board fills every peg. That last step is a one-in-three choice rather than a deduction, and it is worth being honest about which is which: the first two guesses did the work, and the worst case from three candidates is two more guesses, not five.

The habit to copy is the second guess, not the third. Changing a single peg while holding the others still turns a vague answer into a positional one, because any change in the pegs can only have come from the peg you moved.

Three stacked rows showing a Colour Code solve of the hidden code 1-1-2-5. Row one guesses 1-1-2-2 and scores three right spots, leaving 16 possible codes. Row two guesses 1-1-2-3 and scores three right spots again, leaving 3 possible codes. Row three guesses 1-1-2-5 and scores four right spots, solving the board.
The same board, three guesses. The count beside each row is how many codes are still possible.

What the repeat is worth across every board

One example proves the idea but not the size of it, so I ran every code. For each of the 1,170 codes the generator can set, a simulated player opened with a fixed guess and then played any code still consistent with every answer so far. That is roughly what a careful person does by hand, and it is the same rule for each opener, so the openers can be compared fairly.

Opening 1-2-3-4 takes 4.76 guesses on average, and 34 codes drag it out to seven. Opening 1-1-2-3 takes 4.64, with 9 codes reaching seven. Opening 1-1-2-2 takes 4.59, with 6. Two pairs is the best of them, one pair is nearly as good, and four different colours is the worst of the three on both counts.

The average gap looks small at about a sixth of a guess. The tail is where it is felt. Against four different colours you are more than five times as likely to land in a seven-guess board, and on a game where your points come from placing against everyone else who played that day, the seven-guess days are the ones that cost you.

The mistake that feels systematic

If a repeated peg measures a colour, the tempting next thought is to measure them all: guess 1-1-1-1, then 2-2-2-2, and read off the count of each colour in turn. It is clean, it is guess-free, and it is the slowest thing you can do. Run it through the same simulation and it needs 5.12 guesses on average, with 46 codes reaching seven. You spend your guesses buying information you never get to use.

The other common slip is in the reading rather than the play. A hollow peg does not name a colour. If you play 1-1-2-2 and get one hollow peg back, that is one colour of yours sitting in the wrong place, and it might be a purple, a gold, or the second copy of either. Write down what an answer rules out rather than what it seems to suggest, and the ambiguity stops costing you a guess.

Open your next Colour Code board with 1-1-2-2. Then change one peg at a time and watch what moves.

Put it into practice

Try an Easy Colour Code Library puzzle and look for one deduction from this guide.

Play a Colour Code board

Sign in or create an account to save your progress.

More to explore

Four Colour · Solving guide

Four Colour: start where three colours already meet

On a Four Colour board, a region that touches three different fixed colours has only one colour left. Colour it and the next region often corners itself the same way. An original five by five board where one such region settles four of the five open regions, checked by trying every possible colouring.

Read the guide →

Colour Fields · Solving guide

Colour Fields: a full field fences itself in

In Colour Fields, the moment a field reaches its number every square touching it has to take the other colour. An original five by five board where a 1, a 2, two 4s and a 7 each close in turn, checked by trying every possible colouring.

Read the guide →

Pairs · Solving guide

Pairs: a placed domino crosses out its copies

When a Pairs board stops giving you forced cells, look at the dominoes already placed. Each pair appears once, so every other place its digits touch is dead, and that can leave a cell with one partner. A worked example, checked against the game's solver.

Read the guide →

HubbardGames guide

Per-game standings: where you rank in one game

Tap a game's icon on the Board and you get a table for that game alone: today's field with results and hints, and an all-time table ranked on average points per day finished. Where it lives, what each column means, what it leaves out, and four invented Bridges days where the fastest player comes third.

Read the guide →