How to play Code Breaker
A secret code of coloured pegs is hidden. Find it in at most 10 guesses. After every guess you get feedback pegs:
- Black peg — a peg of the right colour in the right position.
- White peg — a right colour in the wrong position.
The feedback pegs are not in any particular order. Duplicates are counted fairly: if the code has one red and you guess two reds, you get credit for only one of them.
Controls
- Tap a colour in the palette to fill the next hole; tap a hole to empty it (or to choose which hole the next colour goes into).
- Keyboard: 1–8 pick colours, Backspace removes, Enter submits the guess.
Options
Play the classic 4 pegs / 6 colours or the harder 5 pegs / 8 colours, with or without duplicate colours in the code. In Computer guesses mode you make a secret code and the computer cracks it, using Knuth's minimax strategy (at most 5 guesses for the classic game) — it shows how many codes are still possible after each guess.
Your fewest-guesses record is saved for every setting.
About this code breaker game
Deduce the secret colour code from black and white peg feedback. Play Code Breaker free in your browser on desktop, tablet or phone. It works offline once loaded — perfect for travel. Your progress and best scores are saved on your device. Popular searches: guess the code.
Code Breaker FAQ
Is Code Breaker free to play?
Yes. Code Breaker is completely free on GamesVora. There is nothing to download or install and you don't need an account.
Can I play Code Breaker offline?
Yes. Once you have opened GamesVora while online, Code Breaker is saved on your device and you can keep playing without an internet connection.
Does Code Breaker work on mobile phones and tablets?
Yes. Code Breaker works in any modern browser on Android phones, iPhones, iPads, tablets, laptops and desktop computers, with touch, mouse and keyboard controls.
Is my progress saved?
Your settings, best scores and statistics are saved in your browser on this device. Clearing your browser data will reset them.
What other games are like Code Breaker?
If you enjoy Code Breaker, try the other games in our Brain & Math collection — they are all free and work offline too.