http://rightisleft.github.io/as3-minesweep/
An ActionScript 3 implementation of the classic game minesweep.
Assumptions:
- Uncover a mine, and the game ends.
- Uncover an empty square, and you keep playing.
- Uncover an empty square, clear the touching non-mined squares to the North, South, East West.
- Uncover a number, and it tells you how many mines lay hidden in the eight surrounding squares—information you use to deduce which nearby squares are safe to click.
Key Commands:
- Shift-Click to Flag a square
- Shift-Click to Un-Flag a square
- End of Game - Click Grid To Continue
- Reset generates a new board