Minesweeper: counting

Each number counts the mines in the eight cells around it. Compare it with its covered neighbours: if it already touches that many flagged mines, every other covered neighbour is safe; if its covered neighbours are exactly as many as the mines it still needs, they are all mines.

11111111
The 1 in the top row touches only one covered cell, so it is a mine. The 1 just below that mine then has it, so its other covered cells are safe.

How it works

Counting: Count the mines still missing around an opened cell or on the whole board. If none remain, the other covered cells are safe; if every covered cell is needed, they are all mines.

The same basic check applies to the board-wide mine counter: if no mines remain, open every covered cell; if the remaining mine count equals the number of covered cells, flag them all. Each opened cell brings a new number to check. When basic counting stops, look at two numbers together.

How to spot it

  1. Look at numbers on the edge of the opened area.
  2. Count their covered neighbours and the flags they already touch.
  3. Flag when the covered cells are all needed; open when the number is already satisfied.

Where you meet it

Hints name this technique in these puzzles, from this level up:

All solving techniques