DevTools Logo

Minesweeper

Minesweeper

Clear the field without detonating a mine — first click is always safe, best times stay in this browser.

Progress saves to this browser only — no account, no server.
Mines
10
Time
0s
Best

Right-click (or Flag mode) to place flags.

Left-click reveals, right-click flags (or toggle Flag mode on touch). Clicking a satisfied number opens its neighbors. The first click is always safe.

About this game

Minesweeper is the deduction classic: a field hides mines, and the numbers on safe cells tell you exactly how many mines touch them. Reveal every safe cell without detonating anything — pure logic, with a little courage when the numbers run out.

This implementation starts fair: mines are laid after your first reveal, and your first cell plus its entire neighborhood are guaranteed safe, so opening moves are about strategy, not luck. Three difficulties scale from the friendly 9×9 (10 mines) through the classic 16×16 (40 mines) to a sprawling 24×16 expert field (70 mines) that scrolls comfortably on phones.

Every input style is supported. On desktop, left-click reveals and right-click flags; on touch, toggle Flag mode and taps place flags. The classic chording trick works too — once a revealed number has exactly that many flags around it, clicking the number opens all of its remaining neighbors at once.

The timer starts on your first reveal and freezes whenever the tab is hidden, so your recorded times reflect play rather than interruptions. Best time per difficulty and your win/loss record persist in this browser's local storage. There is no account and no server — Reset saved data erases everything instantly.

How to use

  1. Open safely

    Click any cell — mines are placed after this first reveal, so it can never explode.

  2. Read the numbers

    A number counts mines among its eight neighbors. Use overlapping numbers to deduce exactly where mines sit.

  3. Flag the mines

    Right-click on desktop, or toggle Flag mode and tap on mobile. Flagged cells cannot be revealed by accident.

  4. Chord to speed up

    When a revealed number already has that many flags around it, click the number to open its remaining neighbors in one move.

Use cases

Daily logic workout

A medium board is a five-minute deduction exercise — constraint satisfaction you can feel.

Teaching case analysis

Numbers as local constraints make Minesweeper a classroom-friendly introduction to deductive reasoning.

Fair speedrunning

Best times per difficulty, a timer that freezes when the tab hides, and a guaranteed-safe first click make runs genuinely comparable.

Touch-first classic

Flag mode and horizontal scrolling bring the desktop classic to phones without compromise.

Common mistakes

Mistake:Guessing whenever unsure

Fix:Exhaust the borders of revealed areas first — most 'coin flips' hide a deduction in a neighboring number.

Mistake:Flagging every suspected cell

Fix:Flags are information anchors, not safety blankets; a wrong flag eventually chords a mine into the open.

Mistake:Ignoring the corner counts

Fix:Corner and edge cells have fewer neighbors (3 or 5), so their numbers are far more constraining than they look.

Frequently asked questions

References & standards