Puzzle Den

Code Breaker: Crack the Color Code

Guess the secret code of four colors. Black pegs mean right color and spot; white pegs mean right color, wrong spot.

About Code Breaker

Code breaking is a classic deduction game. Every clue narrows down the possibilities, so logic beats luck.

Code Breaker at a glance

GenreLogic game
PriceFree, no download or sign-up
ControlsTap
Typical game length5 to 10 minutes
Lives3 per game
Works onPhones, tablets and computers, in any modern browser
Daily challengeYes, the same puzzle for everyone each day

How to play Code Breaker

  1. Pick four colors. Then tap Check.
  2. Read the pegs. Black: exact match. White: right color, wrong place.
  3. Crack it in 10 tries. 24 levels.

Rules

Levels and difficulty

24 levels. You get 10 tries on the first levels, dropping to 6 on the hardest. Your progress is saved on your device, and you can replay any level you have unlocked.

Scoring

40 points for every try you have left when you crack a code. Daily challenge scores can be shared with friends.

Tips and strategy for Code Breaker

History of the game

Mastermind was invented by Mordecai Meirowitz in 1970, based on the older pencil game Bulls and Cows.

How we built and tested Code Breaker

We verified the peg grading, including repeated colors, against the standard Mastermind rules.

Frequently asked questions

Can colors repeat?

Yes.

More games you might like

PandokuLogic
SudokuLogic
MinesweeperLogic
Lights OutLogic
Block BurstPuzzle
Candy PopMatch
Written and tested by Puzzle Den Editorial Team

Game design and testing. The Puzzle Den team designs, builds and play-tests every game on the site, and writes and reviews each guide. We check every level generator for solvability before a game goes live.

Published 30 September 2026 · Last updated 30 September 2026 · How we build and test games