Code Breaker

How to play

The classic code-cracking deduction game. Guess the hidden 4-colour code — black pegs mean right colour in the right spot, white pegs mean right colour, wrong spot.

Rules

  • Click pegs in the colour picker to fill your 4-peg guess.
  • Press Check to lock it in and see your feedback: a black peg for each correct colour in the correct position, a white peg for each correct colour in the wrong position.
  • Use the feedback from every previous row to narrow down the code.
  • Crack the code within 10 tries to win.

Tips

A 4-peg, 6-colour code can always be solved in 5 guesses or fewer with careful deduction — start by testing 2 colours across all 4 pegs to learn how many of each are in the code before worrying about position.