Minesweeper

Classic Minesweeper with Beginner, Intermediate and Expert boards, a guaranteed safe first click that opens an area, flags, sound and a saved game.

The interactive tool loads here when JavaScript runs.

About this tool

What is Minesweeper?

Clear every square that does not hide a mine. Left-click to reveal a square: a number tells you how many of its eight neighbours are mines, and a blank square opens all of its neighbours automatically. Right-click to plant a flag on a square you are sure is a mine. Reveal a mine and the game is over; reveal every safe square and you win.

The three standard sizes are here: Beginner 9 by 9 with 10 mines, Intermediate 16 by 16 with 40 and Expert 30 by 16 with 99. Mines are placed after your first click and never on that square or its eight neighbours, so the first click always opens a patch of board to work from.

The board, timer and difficulty are saved in your browser, so a reload continues the same game. Flagging needs a right-click, so on a touchscreen without a mouse you can reveal squares but not flag them.

  • Standard Beginner, Intermediate and Expert boards
  • Safe first click that always opens an area
  • Flood fill for blank areas and right-click flags
  • Auto-saved game and timer; optional sound effects
  • Classic and Modern styles, fullscreen and a PNG score card
Read the guide: Classic Browser Games: Rules and Strategies That Actually Work

Updated

How to use Minesweeper

  1. Choose a difficulty from the gear menu: Beginner, Intermediate or Expert. Changing it starts a new game.
  2. Left-click any square to start. The timer begins and an area opens.
  3. Use the numbers to deduce mines. Right-click a square to flag or unflag it.
  4. Keep revealing safe squares. Clicking a mine reveals all mines and ends the game.
  5. Click New Game or press Enter twice to restart. After a game ends, Download Score Card saves a PNG of the result.

Background and insight

Minesweeper descends from mainframe games of the 1960s and 70s, but the version most people know shipped with Microsoft Windows from Windows 3.1 in 1992, after appearing in the Microsoft Entertainment Pack. Its Beginner, Intermediate and Expert sizes are the ones still used by most clones, including this one.

The game is mostly logic with occasional forced guesses. A 1 that already touches one flagged mine means all its other hidden neighbours are safe. Two neighbouring numbers that share squares let you subtract one constraint from another, which is how the well-known 1-2-1 and 1-2-2-1 patterns are solved. Determining whether a general Minesweeper position is consistent was shown by Richard Kaye in 2000 to be NP-complete, which is why no simple rule covers every board.

The first-click rule matters. Older versions only protected the clicked square, so the first click often revealed a lone number and forced a guess. Clearing the whole 3 by 3 area around the first click guarantees a blank square, and a blank square always flood-fills outward to a border of numbers.

Common use cases

  • Short logic break

    A Beginner board takes a minute or two and is almost pure deduction.

  • Speed practice

    Expert players race the timer; the saved game lets you pause by leaving the page.

  • Teaching deduction

    Number patterns are a concrete way to practise reasoning from constraints.

  • Retro feel

    Switch between the Classic raised-tile style and a flatter Modern style in the options.

Tips and limitations

  • Start from the edges of the opened area. Corner numbers have fewer neighbours and are easiest to resolve.
  • If a number already touches as many flags as its value, every other hidden neighbour is safe.
  • Learn the 1-2-1 pattern on a straight edge: the mines are under the two 1s, the square under the 2 is safe.
  • When you must guess, guess where the fewest mines could be, usually away from dense numbers or near the board's large unopened regions.
  • There is no chording (clicking a number to clear around it) and no mine counter, so keep track of flags yourself.

Sources and further reading

  1. Minesweeper is NP-complete, The Mathematical Intelligencer. Kaye, 2000
  2. Microsoft Minesweeper, Wikipedia. The Entertainment Pack and Windows 3.1 release

Frequently asked questions

Can the first click in Minesweeper hit a mine?

No. Mines are placed only after your first click, and never on the clicked square or any of its eight neighbours. The first square is therefore always a blank, and the game opens the connected empty region around it so you have numbers to start reasoning from.

What do the numbers in Minesweeper mean?

A number shows how many mines touch that square, counting all eight neighbours including diagonals. A 3 means exactly three of the surrounding hidden squares are mines. A revealed square with no number has no neighbouring mines, which is why it opens its neighbours automatically.

How big are the Minesweeper difficulty levels?

Beginner is 9 by 9 with 10 mines, Intermediate is 16 by 16 with 40 mines, and Expert is 30 columns by 16 rows with 99 mines. These are the classic Windows sizes. Mine density rises from about 12% on Beginner to about 21% on Expert.

How do I flag a mine on a phone?

This version flags with a right-click only, so on a touch screen without a mouse you can reveal squares but not place flags. A tablet with a trackpad or mouse works. Track suspected mines mentally, or play on a computer for flag support.

Does Minesweeper always need guessing?

Not always, but sometimes. Some positions have two arrangements of mines that fit every number, and no amount of logic can pick between them. This game does not generate guess-free boards, so on Expert you will occasionally face a 50/50 choice.

Is my Minesweeper game saved?

Yes. The board, flags, timer and difficulty are written to local storage after every change, and reloading the page continues the same game in this browser. Starting a new game or changing difficulty replaces it.

Is there an in-depth guide to Minesweeper?

Yes. “Classic Browser Games: Rules and Strategies That Actually Work” covers the background, how it works, common pitfalls and worked examples. Read the full guide.