Mastermind Online — Free Daily Code-Breaking Game
Crack a hidden sequence of colored pegs using exact black and misplaced white feedback pins before your rows run out. Play today’s shared Daily 4-peg code or unlimited Easy, Classic, and 5-peg Hard boards—every peg is also numbered 1–8 for full accessibility, with zero sign-up and 100% local play.
Mastermind
DAILY + UNLIMITEDCrack the hidden 4-peg code from 6 colors in 10 guesses. ● = right color, right spot · ○ = right color, wrong spot.
Tap colors to fill the row. Tap a placed peg to clear it.
01 · Information-Theory & Knuth Five-Guess Math
How Black and White Feedback Pins Shrink 1,296 Codes to One
Standard 4-peg, 6-color Mastermind (with duplicate colors allowed) contains exactly 6⁴ = 1,296 possible secret codes. Computer scientist Donald Knuth proved in 1977 that starting with a balanced two-pair probe like 1-1-2-2 guarantees cracking any code in five guesses or fewer—because even a zero-pin response eliminates 92% of the search space in one turn.
Remember the one subtle rule that trips up newcomers: feedback pins are unordered, and each peg in the secret code can match at most one peg in your guess. Fogboard scores exact black pins first, then counts remaining color-only white overlaps accurately even when colors repeat.
02 · Mode Caliper & Code-Breaking Atlas
Four Modes and Six Mastermind Deduction Tactics
Click any tactic below to jump straight up to the matching mode and put it to work on a live secret code.
03 · Plate I · Numbered Pegs & Feedback Scoring
How to Play Mastermind Step by Step
- 01Tap palette pegs (or press keys 1–8)
Fill all 4 slots (or 5 in Hard mode) on the active row. Tap any placed peg in the current row—or hit Delete / Backspace—to remove it cleanly.
- 02Submit and decode ● and ○ pins
Each ● black pin marks a right color in the right slot; each ○ white pin marks a right color in a different slot. Pin order never corresponds to peg columns.
- 03Compare rows to eliminate candidates
Cross-check every new guess against earlier feedback before pressing Submit (or Enter) so every guess stays logically consistent.
- 04Use Hint to lock one guaranteed peg
Stuck on a tricky duplicate code? Tap Hint to reveal and lock one exact peg position in your current row.
04 · Plate II · Colorblind-Safe & Offline Play
Numbered Colorblind-Safe Pegs and Instant Keyboard Play
Traditional plastic Mastermind boards exclude color-blind players. On Fogboard, every single color peg carries a bold high-contrast digit (1 through 8), so you can play effortlessly in Dark mode, Paper mode, or monochrome vision without ever guessing shades.
On phones, the full peg palette sits directly below the board for rapid thumb entry; on desktop, typing digits 1–8 plus Enter lets you crack a Daily code in under a minute—100% locally with zero uploads.
05 · Boundaries & Precision Specifications
Mastermind Specifications and Variant Comparison
Open the collapsible specification tables below for exact code spaces, guess budgets, and how Mastermind compares to Wordle and Bulls & Cows.
Strict One-to-One Pin Scoring
Exact black matches are scored first; remaining white pins never double-count a single secret peg twice.
Color + Number Dual Coding
Every peg prints its digit 1–8 directly on the token for instant colorblind accessibility and keyboard speed.
Shared UTC Daily + Unlimited
Same daily 4×6 code for players worldwide at 00:00 UTC, plus endless Easy, Classic, and Hard 5×8 rounds.
Mastermind Mode Specifications
| Mode | Pegs | Colors | Repeats Allowed | Max Guesses | Possible Codes |
|---|---|---|---|---|---|
| Easy | 4 | 6 (1–6) | No | 10 | 360 |
| Daily (UTC) | 4 | 6 (1–6) | Yes | 10 | 1,296 |
| Classic | 4 | 6 (1–6) | Yes | 10 | 1,296 |
| Hard 5×8 | 5 | 8 (1–8) | Yes | 12 | 32,768 |
Mastermind vs. Wordle vs. Bulls & Cows
| Game | Symbol Set | Feedback Style | Vocabulary Needed |
|---|---|---|---|
| Fogboard Mastermind | 6 or 8 numbered colors | Unordered ● exact / ○ misplaced pins | None (pure logic) |
| Wordle | 26 letters (valid 5-letter words) | Per-slot green / yellow / grey tiles | English dictionary |
| Bulls & Cows | Digits 0–9 (usually no repeats) | Unordered Bulls / Cows counts | None (pure logic) |
06 · Frequently Asked Questions
Frequently Asked Questions About Mastermind
What do the black and white feedback pins mean in Mastermind?
A ● black pin means one peg in your guess is both the right color and in the exact right position. A ○ white pin means a peg is the right color but sitting in the wrong slot. Pins are grouped by black first, then white—their order does not point to specific columns.
Can colors repeat in the secret Mastermind code?
Yes in Daily, Classic, and Hard 5×8 modes, matching the official board game rules. Switch to Easy mode if you want 4-peg codes with strictly unique colors (no repeats).
What is the mathematically best first guess in 4-peg Mastermind?
Donald Knuth proved that opening with two pairs such as 1-1-2-2 guarantees solving any of the 1,296 Classic codes in five guesses or fewer under minimax play.
How are feedback pins scored when my guess has duplicate colors?
Exact black matches are counted and consumed first. Each remaining unmatched peg in the secret code can then award at most one white pin—so guessing four reds against a secret with one red produces only one pin, never four.
Is Fogboard Mastermind playable without color vision?
Yes. Every color peg is also boldly numbered 1 through 8, making it 100% playable by number alone across Light, Paper, and Dark themes.
When does the Daily Mastermind code reset?
A fresh shared Daily 4×6 code unlocks every day at 00:00 UTC. Tap New code anytime to play unlimited rounds across Easy, Classic, or Hard 5×8.
Can I play Mastermind using my keyboard?
Yes. Press number keys 1–6 (or 1–8 in Hard mode) to place pegs, Backspace to delete the last peg, and Enter to submit your row.
Do I need an account or download to play?
No. Mastermind runs 100% free and locally in your browser with zero sign-up and zero data uploaded.
07 · Editorial Index
More Pure-Deduction Logic Puzzles on Fogboard
- Mini Sudoku 6×6Fast 2×3 box number deduction with pencil notes and unique solutions.
- No Guess MinesweeperClassic sweep verified end-to-end with zero 50/50 guessing.
- Zip GameConnect 1 → N and cover every square without crossing coral walls.
- Queens PuzzleOne crown per row, column, and colored region with no touching corners.
- Battleship OnlineFog-of-war naval radar duel against a probability-heatmap AI.
- All 10 Daily Logic GamesCompare all ten Fogboard puzzles and track today’s UTC streak.
Discuss Mastermind
Share how many rows today’s Daily code took—please keep exact daily peg numbers out of comments.