Menu

Color Code Breaker

Crack the hidden 4-color sequence in 8 attempts. Use the clues to deduce the code!

Attempts
0/8
Time
0s
Games Won
0
Best
0
Exact (color + position correct) Partial (color correct, position wrong) No match

🎨 Available Colors

Click a color, then click a peg to fill it
✓
01
ABOUT THE GAME

What Is Color Code Breaker?

Color Code Breaker is a Mastermind-style puzzle game where a hidden 4-color code has been set. Your job is to deduce it within 8 attempts by making guesses and reading the clues you get back.

After each guess, you receive feedback about how close you were: exact matches (correct color in the correct position) and partial matches (correct color in the wrong position). Using this feedback, you narrow down the possibilities until you crack the code.

Simple idea: Make a guess → read the clues → deduce the next guess → repeat until you crack the code or run out of attempts.
02
HOW TO PLAY

Game Rules & Controls

01PickChoose a color from the palette
02PlaceClick a peg to fill it with that color
03SubmitWhen all 4 pegs are filled, submit the guess
04Read cluesUse exact and partial matches to deduce the code
  • 8 attempts total. You have limited tries to crack the code.
  • 4 pegs per row. Every guess has 4 colored pegs.
  • Exact match (green): the right color in the right position.
  • Partial match (amber): the right color in the wrong position.
  • No match (grey): that color doesn't appear in the code at all.
  • No duplicates in the code. Each color appears at most once in the hidden code.
03
STRATEGY

How to Win Every Time

STEP 1

Probe first

On your first guess, pick 4 different colors to gather maximum information. Don't repeat colors.

STEP 2

Lock in exacts

Keep pegs with exact matches in the same position. Never move an exact match.

STEP 3

Rotate partials

If a color is a partial match, it belongs somewhere else in the code. Try it in a different position each time.

With 8 attempts and smart strategy, the code is crackable every time. If you're struggling, try doing your first 2-3 guesses as pure information-gathering probes, then narrow down based on which colors appeared vs didn't appear.

04
SCORING

How Points Are Earned

  • Base points: 1000 points for cracking the code.
  • Attempt bonus: −100 per attempt used (fewer attempts = higher score).
  • Time bonus: Up to +300 for finishing quickly.
  • Level bonus: +200 per level of difficulty cleared (levels introduce more colors or longer codes).

The final score for a round is: max(100, 1000 − attempts × 100 + timeBonus + levelBonus).

05
TIPS

Tips for Higher Scores

  • Never repeat colors on the first guess. You want to learn which colors are in the code.
  • Watch the exact matches. Locked positions are your best information.
  • If 0 matches appear, all 4 colors are wrong — remove them from your pool.
  • Partial matches reveal colors, not positions. Rotate them through remaining positions.
  • Don't move exact matches. Even one mistake wastes an attempt.
  • Track eliminated colors. Use the clue legend to remember what's excluded.
08
FAQ

Color Code Breaker FAQ

What is Color Code Breaker?

A Mastermind-style puzzle game where you crack a hidden 4-color sequence in 8 attempts using exact and partial match clues.

How do I play?

Pick a color from the palette, click a peg to fill it, then submit your guess. Read the clues — green = exact match, amber = partial match — and deduce the next guess.

What does "exact match" mean?

An exact match means the color and its position are both correct. The clue peg turns green.

What does "partial match" mean?

A partial match means the color is in the code but in a different position. The clue peg turns amber.

Can the code have duplicate colors?

No. Each of the 4 positions has a unique color from the palette — no repeats.

How many attempts do I get?

8 attempts per game. If you don't crack the code in 8 guesses, the round is lost.

How is score calculated?

Base 1000 points minus 100 per attempt, plus a time bonus and level bonus. Fewer attempts and faster completion = higher score.

Is my best score saved?

Yes. Your best score is saved in browser local storage.

Is the game free?

Yes. Color Code Breaker is completely free and requires no account.