Rules Of The Game
Minesweeper is a game of mathematics, logic, and chance
- Set a difficulty level -
- Left Click any cell on the board to begin
- Visible numbers represent how many bombs are present in the 8 surrounding cells
- Right Click any cell to plant a flag and designate cell as a bomb
- The goal of each game session is to clear all cells without clicking a bomb
|Beginner||10||9 x 9|
|Intermediate||40||16 x 16|
|Expert||99||16 x 30|
As part of a recent interview process I was sent a package of materials to study in advance. One of the suggested assignments was to create a command line version of Minesweeper. Minesweeper is a classic video game that first appeared on Windows 3.1 in 1992.
I decided it might be more interesting to build a graphic version since I had been exploring SVG and D3 in recent weeks. After completing the project, I find myself with a new appreciation for the power of SVG in user interface design. Aside from the frame surrounding the game, which is a series of tiny GIFs, and the fonts used to represent numeric values, the entire user interface is composed of SVG Patterns I created with Boxy Svg.
Check out the source code at Observable