How to Play Code Breaker

This guide explains how to play Code Breaker, the colour-code deduction game on our site. It covers the rules, how the clues are counted, and a practical way of reasoning that cracks the code well within the rows you have.

Play now

The goal

The game hides a secret code: a short row of gems in a fixed order. Your task is to guess that exact row before your rows run out. Each guess earns feedback, and the feedback is all you have to go on.

Levels and the board

The possible colours are Ruby, Gold, Emerald, Sapphire, Amethyst, Pearl, Amber and Turquoise; Easy and Medium use six of them. The board shows your rows from top to bottom, with a palette below. The bar counts the rows you have used.

  • Easy: the code has 4 gems from 6 colours, no colour repeats, and you have 10 rows.
  • Medium: 4 gems from 6 colours, repeats allowed, 10 rows.
  • Hard: 5 gems from 8 colours, repeats allowed, 12 rows.

Making a guess

  1. Tap a colour in the palette. It goes into the selected slot of your current row.
  2. To change a slot, tap it to move the cursor there and pick a new colour. Tapping a filled slot a second time clears it.
  3. On Easy, if you pick a colour that is already in the row, the game reminds you that each colour can be used only once.
  4. When every slot is filled, press Check. If a slot is empty, the game asks you to fill it first.
  5. Read the markers beside the row, then start the next row.

Reading the clues

For every gem that is the right colour in the right place you get a gold pin. For every other gem that is the right colour but in the wrong place you get a cream ring. The markers are shown grouped, gold first, so their position says nothing about which gem they refer to.

Repeated colours are counted fairly. If the code holds one Ruby and your guess holds two, at most one of your Rubies can earn a marker. Likewise, if the code holds two Rubies and you guessed one, you get a marker for only one.

Winning and losing

Four gold pins on Easy or Medium, or five on Hard, mean you have cracked the code. The Victory screen shows time, moves and score. The score is highest when you need few rows, finish quickly and use no hints.

If you fill the last row without success, you can watch a short video once per round for two extra rows. If those also run out, the round is over and the code is revealed, except in a daily challenge, where it stays secret so you can try again.

A deduction strategy

  1. Find the colours first. Use your opening guesses to test different colours, for example two of one colour and two of another on Medium. The total of pins and rings tells you how many gems of those colours the code contains.
  2. Then find the places. Once you know which colours are in play, move them around. A gem that earns a gold pin in one spot and a ring in another tells you a lot.
  3. Make every guess consistent with every clue so far. Before pressing Check, ask whether this row could actually be the code given what you know.
  4. Change one thing at a time near the end. If only one gem moves between two rows, any change in the clues points straight at that gem.

Common mistakes

  • Treating the position of a pin as the position of a gem. Pins are grouped, not placed.
  • Forgetting that a missing marker is also a clue: it rules colours out.
  • Guessing a row that an earlier clue already makes impossible, which wastes a row.
  • Expecting undo to take back a checked row. Undo only removes gems from the row you are still filling.

Glossary

  • Code: the hidden row of gems you are trying to find.
  • Row: one guess. The number of rows is your budget.
  • Gold pin: right colour, right place.
  • Cream ring: right colour, wrong place.
  • Palette: the set of colours you pick from.
  • Repeats: the same colour used more than once in the code, possible on Medium and Hard.

FAQ

How many guesses do I get?
10 rows on Easy and Medium, 12 on Hard, plus two more once per round if you watch a short video.
What does a hint do?
After a short video it reveals one gem of the code for good and places it in your row.
Can I play with the keyboard?
Yes. Keys 1 to 8 pick colours, the arrow keys move the cursor, Backspace removes a gem and Enter checks the row.
Where can I play?
Open the Code Breaker page to start a code. If you like this kind of reasoning, Minesweeper is another game of clues and deduction.

More games

Privacy settings

Choose which optional cookies and similar technologies we may use. You can change this at any time with the “Privacy settings” link at the bottom of every page.

Strictly necessaryAlways on

Keep your saved games, sound and language settings and this choice on your device. Always on, because the site cannot work properly without them.

Anonymous statistics that show us which games and pages are used, so we can improve them.

Lets Google and its partners use cookies to personalise ads and measure them. If this is off, you may still see ads, but they won't be based on your interests. Turning it off also opts you out of the “sale” or “sharing” of your personal information.