How to play Codebreaker
The top row hides a code of four symbols, five on Hard. After each guess, pins tell you how many symbols are right and in place and how many are right but misplaced. Never which ones.
Crack it before the guesses run out. Fewer guesses and less time score more.
Rules
- Classic codes are 4 symbols drawn from 6, with 10 guesses. Hard codes are 5 from 8, with 12 guesses. Any symbol can appear more than once.
- Each guess earns a solid pin for every right symbol in the right place and a hollow pin for every right symbol in the wrong place. Solid pins come first, so their order tells you nothing.
- Repeats are counted fairly: a symbol earns at most as many pins as it appears in the code.
- A cracked code scores 100 for every guess left unused, counting the winning one, plus 1 for every second under the time cap: 5 minutes on Classic, 10 on Hard. Hard doubles the total. A code you don’t crack scores nothing.
- The Daily code follows Classic rules and comes from the date, so everyone on that date gets the same one. You get one attempt. It is saved in your history but never ranked, since a shared code can be passed around.
- A counter under the board shows how many codes still fit every pin so far. The clock starts with your first symbol and pauses while the tab is hidden, and each mode keeps its game in progress.
Controls
- Click / tap a symbol
- Put it in the next empty slot
- Click / tap a slot
- Clear that slot
- 1 – 6 (Hard: 1 – 8)
- Put that symbol in the next empty slot
- Backspace
- Clear the last symbol
- Esc / Delete
- Clear the whole row
- Enter
- Check the guess; after a Classic or Hard game, start a new code
- P
- Pause and resume (the rows are hidden while paused)
Tips
- Before you press Enter, pretend your guess is the code and mark every earlier row against it. If any row would get different pins, it isn’t the code.
- Swap two symbols and keep the rest. Lose a solid pin and one of the two was already home; gain one and one of them just got there.
- On Hard, five slots and eight symbols mean at least three symbols are not in the code. Once you find one, use it to fill the slots you aren’t testing.
Codebreaker strategy
A guess is worth 100 seconds
Each unused guess scores 100 points and each second under the cap scores 1, and Hard doubles both, so the exchange rate never changes. A guess you save is worth more than a minute and a half of thinking. The whole time bonus on Classic, 300 points, equals three guesses. Take the extra moment to pick a sharp guess rather than firing off a weak one quickly.
Openings that split the field
Classic has 1,296 possible codes. Two symbols twice each leaves at most 256 after the first row of pins, against 625 for one symbol four times and 312 for four different ones. Hard has 32,768 codes. One symbol five times can leave 16,807, while a spread of four or five different symbols leaves at most around 7,100. On Hard, a second guess built from the unused symbols covers all eight.
Add pins across guesses
The total pins on a row count how many of your symbols are in the code. If two guesses use different symbols, add their totals. On Classic, AABB then CCDD tells you how many of the code’s four are E or F, unless one symbol appears three or more times. A row with no pins at all is the best news there is: every symbol in it is gone from every position.
Close out with the counter
Watch the possible-codes counter, not just the board. While it is large, a guess that cannot be the answer may still split the field better than one that can. Once it is small, play only codes that could win. With two left, guess either. With three, pick one whose pins against the other two would differ, so you win now or know the answer next turn.
About Codebreaker
Hidden-code games are older than the boxed versions: Bulls and Cows was played with pencil, paper and numbers before anyone moulded a plastic peg. The pegs-and-pins board game came out in the 1970s, and in 1977 Donald Knuth showed that any code of four pegs in six colours can be cracked in five guesses or fewer.
Here eight symbols stand in for the colours, each with its own shape and fill pattern: circle, triangle, square, diamond, star, cross, hexagon and moon (Classic uses the first six). Nothing depends on telling hues apart. The daily code is worked out from the date inside your browser; no server hands it out.
Questions
What do the solid and hollow pins mean?
Solid: one of your symbols is right and in the right place. Hollow: one is in the code but somewhere else. The pins never say which symbol they refer to.
Can the code repeat a symbol?
Yes, in every mode. Pins count repeats fairly, so a symbol earns at most as many pins as it appears in the code.
How is the score calculated?
100 points for each guess left unused, counting the winning one, plus a point per second under the cap (5 minutes Classic, 10 Hard), doubled on Hard. On Classic the Expert level is 650 and the Pro level 930.
How many guesses do you need with perfect play?
Five at most on Classic. Donald Knuth proved it in 1977 for codes of four from six.







