How to play Code Breaker
- Make a guess by choosing a colour for every position.
- Read the feedback: exact matches (right colour, right place) and colour matches (right colour, wrong place).
- Keep only codes that would have given every answer so far.
- Guess again, and repeat until every peg is an exact match.
Code Breaker rules
The code
- The hidden code is a row of coloured pegs chosen from a set of colours.
Guesses and feedback
- Each guess is a full row of colours, the same length as the code.
- Feedback gives one mark for each peg that is the right colour in the right position.
- It gives another kind of mark for each remaining peg whose colour is in the code but in a different position.
- The marks are not in the same order as the pegs, so you must work out which peg each one refers to.
- Repeated colours count only as many times as they appear in both the guess and the code.
Winning
- The code is cracked when a guess scores an exact match on every peg.
Code Breaker tips
Open with a spread of colours
Early guesses that use several different colours tell you which colours are in the code at all. Knowing that is half the puzzle.
Change one thing at a time
If you swap two pegs between guesses and the exact count rises by one, you learn more than from a completely new guess. Small controlled changes make the feedback easy to read.
Check every guess against all clues
Before you submit, ask whether this guess could be the code given every answer so far. A guess that contradicts an earlier answer cannot win, so it wastes a try.
Read zero feedback as a gift
A guess that scores nothing removes all of its colours from the code at once. Use those colours as known blanks in later guesses to test positions.
Where to play Code Breaker
Gridwise
Logic puzzles in one calm app
- Gridwise calls it Code Breaker, with the line 'Crack the colour code'; it also answers to Colour code and Crack the code.
- Pip can help with a nudge, a reason or a step when you stall.
- 300 levels make up its path.
- A typical level takes about 4 minutes.
Questions about Code Breaker
How do you play Code Breaker?
Guess the hidden colour code. After each guess you are told how many pegs are the right colour in the right place and how many are the right colour in the wrong place. Use that to refine the next guess.
What do the feedback pegs mean?
One kind means a peg is the right colour and in the right position. The other means a colour is in the code but sits somewhere else. The marks do not tell you which pegs they belong to.
What is a good first guess in Code Breaker?
One that uses several different colours, so the first feedback tells you which colours are in the code. Then use later guesses to place them.
Can a colour appear twice in the code?
That depends on the version. When repeats are allowed, feedback counts each colour only as many times as it appears in both the code and the guess.
Facts checked against the game's own design documents on .

