In minesweeper, you are presented with a grid of potential mines. When you click on a square, if that square contains a mine you lose. Otherwise, the square will reveal the number of neighboring squares that contain mines. You win the game by clearing the board of all squares that aren't mines. Good luck!
A square's neighbors are the squares above, below, left, right and diagonal from that square.
You can track your guesses about which squares contain mines in flag mode. In flag mode, if you click on a hidden square, the square will be flagged as a mine. Clicking a flagged square in flag mode will unflag the square. Flagged squares can't be clicked on in sweep mode, so don't worry about accidentally detonating a known mine.