My implementation of a web-based mine-sweeper game.
Created using HTML, CSS and JavaScript.
- Left click to reveal, right-click for flag.
- A flag can't be revealed. Right-click again to undo.
- Auto-reveal all cells surrounding an empty cell.
- Stop game when mine is hit.
- Difficulty and size selection by the user (currently by fixed values).
- Shows how many mines are left (according to marked flags).
- Show timer.
In no particular order:
- Take size of board from user input.
- Add difficulty selection by the user.
- Add counter of remaining mines.
- Add checker for finished game (according to revealed tiles, not flags)
- Add timer.
- Make sure no empty board is generated.