The
main aim of the game is to
avoid hitting a mine while
placing a flag on every square
that contains a mine.
Start
by clicking on any square to
reveal an initial group of
safe squares. Each safe square
contains a number which indicates
how many mines are next to
that square. This number can
range from 1 to 8. A safe square
with no number at all has no
mines next to it.
Using the revealed numbers,
calculate which spaces are
safe to click on - that is,
which spaces can't possibly
contain a mine - and click
on them to reveal more numbers.
Also, calculate which spaces
contain a mine, and flag
them.