Fork me on GitHub

MiniSweeper

A HTML/JavaScript minesweeper in bytes


Source code:

Golfed by xem and subzey

Annotated source


Demo:

Best viewed on Firefox / IE

- Left click to reveal a cell and see how many bombs are around.
- Right click to set a flag where you believe there is a bomb.
- You lose if you reveal a bomb.
- You win when all the bombs are flagged.