Games140All free gamesGroupsLeaderboards

Free games › Codebreaker

🔐 Codebreaker game (Mastermind) — free on Games140

Crack the hidden code. This is classic Mastermind, the 1970s code-breaking game.

Play now, free

How to play Codebreaker

  1. The computer picks a secret code of coloured pegs. On Standard that is 4 pegs from 6 colours, and colours can repeat — 1,296 possible codes.
  2. After each guess you are told how many pegs are the right colour in the RIGHT place, and how many are the right colour in the WRONG place. Never which ones — that is where the deduction comes from.
  3. The count above the board shows how many codes still fit everything you have been told, and ✅ lists what you have already proved.
  4. After guesses 2 and 4 you are asked what you can conclude with certainty. Exactly one answer is provable from the feedback.

Controls. Pick a level before your first guess. Tap colours to fill the slots, then Guess. Undo removes the last peg.

Scoring

Points for information, not speed: 100 for cracking it in 4 or fewer, 10 less per extra guess. +6 per certain conclusion, +6 for testing one or two pegs at a time, +10 for matching the solver, −4 for any guess that taught you nothing.

Strategy tips

Levels: Beginner 4 pegs × 5 colours, no repeats · Standard 4 × 6 · Advanced 5 × 7 · Expert 5 × 8 in 8 guesses. Three well-played games in a row moves you up.

What it trains

Codebreaker is part of the Reasoning (deduction) group of games on Games140. Games140 is a set of free daily thinking games with coaching: you can play first and sign up later to save your streak, keep your level, or join a group with friends or family.

Play now, free

More free games

🟩 WordWise
Figure out the secret 5-letter word in 6 guesses or fewer.
🧩 Connected
Sort 16 words into the 4 hidden groups of 4 that they belong to.
♞ Chess Puzzle
Find the strongest move (or short sequence of moves) in a real game position.