Skip to content

Code Breaker

Crack the secret colour code from the black and white pegs.

Loading game…

How to play

  1. A secret code of colours is hidden. Guess it in ten tries.
  2. After each guess: a black peg for every colour in the right place.
  3. A white peg for every colour that's in the code but in another place.
  4. The pegs don't say which slots they refer to.
  5. Use the feedback to rule codes out; each guess should test something new.

About Code Breaker

Play Code Breaker (the colour code guessing game) free online: four or five pegs, six or eight colours, a hint that reasons like a solver, and a daily code for everyone.

Code Breaker: common questions

What do the black and white pegs mean?
A black peg: one of your colours is in the right slot. A white peg: one of your colours is in the code, but in a different slot. The pegs are not in slot order.
How are repeated colours counted?
Each colour in the code is matched to at most one in your guess. If the code has one red and you guessed two, only one of them gets a peg.
What's the best first guess in Code Breaker?
Two pairs, like red red blue blue, when repeats are allowed; four different colours otherwise. Both leave few possibilities whatever the pegs say. With perfect play any 4-slot, 6-colour code falls in five guesses.
  • Star Battle1 playerOne star per row, column and region, and no two stars touching.Puzzle GamesPlay
  • Colour Flood1 playerFlood the board one colour at a time from the top-left corner.Puzzle GamesPlay
  • Peaceful Pieces1 playerGive every chess piece a square where nobody attacks anyone.Puzzle GamesPlay
  • Traffic Jam1 playerSlide the cars and lorries out of the way so the red car can leave.Puzzle GamesPlay
  • Tangram1 playerSeven pieces, one silhouette: fill the shape exactly.Puzzle GamesPlay
  • Collapse1 playerTap groups of matching blocks to clear them; big groups score big.Puzzle GamesPlay

More Puzzle Games →