Fogboard
UTC Daily

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 + UNLIMITED
1. Pick 4 or 5 pegs 2. Read ● & ○ pins 3. Crack the code

Crack the hidden 4-peg code from 6 colors in 10 guesses. ● = right color, right spot · ○ = right color, wrong spot.

Guesses: 0 / 10 · Daily

Time: 0:00

Tap colors to fill the row. Tap a placed peg to clear it.

100% browser-only code engine — deterministic daily UTC codes, peg scoring, and streak storage run locally with 0 uploads and no login. Resets daily · 00:00 UTC

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.

Classic: 6⁴ = 1,296 codes Hard 5×8: 8⁵ = 32,768 codes Knuth bound: ≤ 5 turns
SEARCH SPACE COLLAPSE · 1,296 POSSIBLE CODES → 1 Start 1,296 codes Guess 1 (1122) ≤ 256 remaining (~80% cut) Guess 2 ≤ 24 remaining Guess 3–4 1 exact code cracked Numbered pegs (1–8) ensure full clarity for color-blind players.

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.

Easy (No Repeats) 360 codes · 10 rows · ~1.5m Daily 4×6 1,296 codes · UTC seed · ~2.5m Classic 4×6 1,296 codes · repeats on · ~2.5m Hard 5×8 32,768 codes · 12 rows · ~5m+

03 · Plate I · Numbered Pegs & Feedback Scoring

How to Play Mastermind Step by Step

Mid-solve Daily Mastermind board showing color-and-number pegs 1 through 6, black and white feedback pins on completed rows, and active guess palette
Plate I — Mid-solve Daily Mastermind: submitted rows display black exact-slot pins and white color-match pins on the right, while numbered pegs 1–6 ensure effortless reading in any lighting.
  1. 01
    Tap 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.

  2. 02
    Submit 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.

  3. 03
    Compare rows to eliminate candidates

    Cross-check every new guess against earlier feedback before pressing Submit (or Enter) so every guess stays logically consistent.

  4. 04
    Use 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.

Completed Daily Mastermind board revealing the secret 4-peg code at the top, all four black feedback pins lit, timer stopped, and Share result button ready
Plate II — Cracked Daily Mastermind code: secret sequence unlocked at the top, four solid black feedback pins matched, and spoiler-free Share result unlocked.

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.

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

Discuss Mastermind

Share how many rows today’s Daily code took—please keep exact daily peg numbers out of comments.