Code Breaker
black pin: right place · white pin: right colour

Play Code Breaker

00:00
Tap colours · Check ✓Keys 1–8 · Enter

How to play Code Breaker

A classic deduction game. The computer hides a code made of coloured pegs, and you try to work it out. After each guess you get pins: one black pin for every peg that is the right colour in the right place, and one white pin for every other peg that is a right colour but in the wrong place. The pins never say which pegs they mean.

Every guess cuts down the codes that could still be the answer. Good players think about what each guess will tell them: a guess that could only get one kind of answer is wasted; a guess that splits the possibilities evenly is gold.

The hint keeps track of every code that still fits all your pins, so you can see your reasoning pay off — and learn which guesses tell you the most.

How to play Code Breaker

Work out a hidden code of coloured pegs from black pins (right place) and white pins (right colour, wrong place).

The rules

  1. A code of 3, 4 or 5 coloured pegs is hidden. On some levels colours can repeat.
  2. Make a guess with the same number of pegs.
  3. You get one black pin for each peg of the right colour in the right place.
  4. You get one white pin for each other peg that is a right colour in the wrong place. The pins don’t say which pegs they mean.

Playing here

  1. Choose a level — from 3 pegs and 4 colours up to 5 pegs and 8 colours with repeats — and press New Puzzle.
  2. Tap colours on the palette (or keys 1–8) to fill your guess. Tap a peg position to change it, ⌫ to step back.
  3. Press Check. A black pin means a peg of the right colour in the right place; a white pin means a right colour in the wrong place.
  4. Use the pins to narrow it down. Hint tells you how many codes still fit and suggests a guess that splits them well.

Tips

The full guide, with a worked example and common mistakes: How to play Code Breaker.

Questions

Can colours repeat?

On the Hard and Expert levels, yes. On Easy and Medium every colour in the code is different.

Is there a guess limit?

The board shows 8 to 12 rows depending on the level — try to finish within them.

What does the hint do?

It counts the codes that still fit all your pins, points out anything certain, and suggests a guess that leaves as few codes as possible whatever the pins say.

Related