Clear the grid without stepping on a mine.
Left-click to reveal a cell and right-click to plant a flag. The numbers tell you how many mines touch that square.