Click to reveal a tile. Hold Space and click to place a flag.
Decided to make minesweeper. Took about 2 hours altogether. (over the span of 2 days.)