Minesweeper
Pure logic Minesweeper that never forces a guess, running entirely in your browser.
Minesweeper is often misunderstood as a game of luck punctuated by cruel coin flips. In standard implementations from early operating systems, mines were scattered across the board at random. While the opening click might be protected, players frequently reached endgames where two hidden squares each had an equal 50% probability of containing the final bomb.
This implementation eliminates guesswork entirely. Every board is evaluated by an automated deductive engine before you make your second move, guaranteeing that every safe cell and every mine can be deduced with 100% certainty from the visible clues.
Opening Safe Zones
Your very first click is always guaranteed to land on a zero. Mines are positioned only after you touch the board, strictly excluding your chosen square and all eight of its adjacent neighbours. This immediately triggers an opening cascade, giving you an informative shoreline of numbers to work with rather than an isolated digit.
Core Logical Patterns
Mastering Minesweeper relies on recognizing local set relationships along the boundary between revealed numbers and hidden tiles.
- The 1-2-1 Wall: When you encounter numbers reading 1-2-1 along a straight wall of unopened squares, the two squares directly adjacent to the ones are always mines, while the square directly opposite the center two is always safe. The two requires two mines across three available spaces; since each flanking one can claim at most one mine from the two’s span, the outside squares must contain both mines.
- The 1-2-2-1 Pattern: Along an unbroken flat border, a 1-2-2-1 sequence always harbors mines beneath both twos, while the squares beneath both ones are guaranteed safe.
- Set Difference and Subsets: When cell A has two hidden neighbours that are a strict subset of cell B’s three hidden neighbours, the difference between their numbers dictates whether the excess square is a mine or safe. If B minus A equals one and there is only one excess square, that square is unconditionally a mine.
Fast Play with Chording
Once you have flagged the correct number of mines around a numbered square, activating that number again—by clicking it or pressing Space—chords the cell, instantly opening all remaining unflagged neighbours. If all your flags are correct, chording shaves seconds off your completion time. If any flag was misplaced, the chord will strike the concealed mine, making disciplined flagging essential for high-speed runs.
Controls
| Arrow keys | Move the cursor. |
|---|---|
| Enter or Space | Reveal the active cell or chord an already-revealed number. |
| F | Toggle a flag on the active cell. |
| Left click / Tap | Reveal a hidden cell or chord a revealed number. |
| Right click | Toggle a flag on a cell. |
| Long press | Flag or unflag a cell on touch screens. |
Questions
Is every board really solvable without guessing?
Yes. Every single board is verified by a built-in deductive solver before play begins. If a generated mine layout ever requires a 50-50 coin flip or speculative guess, it is rejected and regenerated until a completely deterministic board is found.
What is chording and how does it work?
Chording lets you reveal multiple cells in one action. When an already-revealed numbered cell is adjacent to the exact number of flags as its number, clicking it or pressing Space immediately opens all remaining unflagged neighbours. If your flags are accurate, this speeds up clearing safe clusters; if a flag is mistaken, it will detonate a mine.
How do I flag suspected mines on mobile or touchscreens?
You can press and hold on any cell for approximately 450 milliseconds to place or clear a flag without opening the cell. Alternatively, use the on-screen mode toggle above the board to switch direct taps between Dig and Flag modes.
What are the board dimensions and mine counts?
Beginner features a 9 × 9 grid with 10 mines (12.3% density). Intermediate is a 16 × 16 grid with 40 mines (15.6% density). Expert is a 30 × 16 grid with 99 mines (20.6% density).