Code Breaker

Loading game…
Rotate your device for the best experience
Code BreakerPuzzle Game info & more games
Code Breaker game

Code Breaker

Puzzle1 playerDesktop · Tablet · Mobilecode breakermastermind stylelogicdeductionpegs

Deduce the hidden colour code in ten guesses using black and white feedback pegs. A classic logic game, free to play in your browser.

About Code Breaker

Code Breaker is the classic game of deduction played with coloured pegs on a wooden board. The computer hides a secret code of four or five colours behind a little cover, and you have ten guesses to work it out.

After each guess, small feedback pegs tell you how close you are. A black peg means one of your pegs is the right colour in the right place. A white peg means one of your pegs is the right colour but in the wrong place. The feedback never says which pegs it refers to, and that is where the logic comes in: compare guesses, rule colours out, and narrow the code down step by step.

Easy uses four pegs and six colours with no repeats, which is perfect for learning. Classic allows a colour to appear more than once, and Hard raises the code to five pegs and eight colours. With good reasoning, most codes can be cracked in five or six guesses.

How to play

Tap colours to fill the four or five holes of the current row, then press Check. Black pegs show right colours in the right place, white pegs show right colours in the wrong place. Tap a peg in the current row to remove it. Find the code within ten guesses to win.

Controls

Tap a colour / 1 – 8
Place a peg
Tap a peg / Backspace
Remove a peg
Enter
Check the guess
Esc / P
Pause

Tips

  • Start with guesses that use many different colours to find which ones are in the code.
  • Zero feedback pegs is great news: none of those colours appear.
  • Change one peg at a time when you are close, to see exactly what moves.
  • Remember that repeated colours are possible in Classic and Hard.

Screenshots

FAQ

Is Code Breaker free to play?

Yes. Code Breaker is free and runs in your browser with no download or account.

Do the feedback pegs match the position of my pegs?

No. They are always listed black first, then white, and do not tell you which of your pegs they refer to.

Can the code contain the same colour twice?

In Classic and Hard, yes. In Easy every colour in the code is different.