See the pattern step by step

Board example
Look at the middle 1. Seven squares around it are open and safe. Only the top-right square is still covered. The mine must be there.
Before

After

Why it works
The 1 counts one mine around it. The seven open squares are safe, so the mine is in the top-right square. Place a flag there to mark the mine.

The rule
Subtract the known mines around a number from its count. This gives the number of mines still to find. If you need 2 mines and have only 2 unknown squares, both squares have mines. The same rule works for other counts.
What to check
Check all squares around the number, including the corners. Count a mine once the numbers prove it. Keep any flag placed as a guess among the unknown squares.
Use the same rule for two or three mines
Subtract the known mines that touch a number. Then count its unknown squares. If a 2 still needs two mines and touches only two unknown squares, both have mines. If a 3 needs three mines in three unknown squares, all three have mines. The rule works whenever the remaining mine count equals the number of unknown squares.
Try this pattern
Use the numbers to choose your next move. Include the corners when you count. Squares outside the picture are open. Each flag marks a known mine.
Select every square you can prove has a mine.
See why
The 1 counts one mine around it. The seven open squares are safe, so the mine is in the top-right square. Place a flag there to mark the mine.

