Minesweeper is a game of math and logic
- Set a difficulty level
- Left Click any cell to begin the game
- Number cells indicate how many bombs are in the surrounding 8 cells
- Right Click any cell to mark it as a bomb
- Clear all cells without clicking a bomb
|Beginner||10||9 x 9|
|Intermediate||40||16 x 16|
|Expert||99||16 x 30|
Recently I was scheduled to interview for a position and the company sent some preparation material. One of the suggested assignments was to create a command line version of Minesweeper. I decided it would be cooler to build a graphic version since I had been messing around with Svg and D3 alot recently. I ended up with a new appreciation for the power of Svg. Aside from the border around the game and the fonts, the rest of the user interface was created using Boxy Svg.
Check out the source code at Observable.