Open every safe square without setting off a mine.
Tap a square to dig. The number on it counts the mines in the eight squares touching it.
Press and hold (or right-click) a square to plant a flag where you think a mine is.
Tap a number whose mines are all flagged to open the rest of its neighbors at once.
The bottom button swaps tap and hold, if flagging by hold feels fiddly.
Build your own minefield