The objective of Minesweeper is to clear a rectangular board containing hidden "mines" or bombs
without detonating any of them.
To start, click on any square on the board. If that square contains a mine, the game is over. If it
does not contain a mine, a number will appear indicating how many mines are in the eight adjacent
squares.
Use the numbers to deduce the location of mines. For example, if a square has a "1" on it, there is
one mine in one of the eight squares around it.
Right-click on a square to flag it if you think it contains a mine. Right-click again to unflag it.
The game is won when all non-mine squares have been cleared.