Code Breaker

Guess the secret 4-colour code. After each guess, a black peg means right colour in the right spot; a white peg means right colour, wrong spot.

Build a guess, then press Submit.

Classic rules: the code is 4 pegs long, chosen from the colours above. You have 10 guesses. This version lets you choose whether the secret code can repeat a colour.

Running into a technical issue or something that doesn't work right on this page? Please let us know straight away via our Contact page — that's how we find out what's broken and get it fixed.