Someone says "minesweeper", I post my implementation. It's an established ritual.
Here go: http://www.ronilan.com/bugsweeper/
Few notes:
1. This is dated January 2014. It is a job interview homework.
2. The HN community has detected a bug and indicated that it should be fixed. That was done March 2017.
3. There are currently no known bugs.
4. The goal of the game is to find the unknowns.
5. No puns intended.