The BVG Software website is 🚧 UNDER CONSTRUCTION 🚧

Blog.

Minesweeper

Cover Image for Minesweeper
BVG Software
1 Min Read

Rules Of The Game

Minesweeper is a game of mathematics, logic, and chance

  1. Set a difficulty level - Beginner, Intermediate, or Expert
  2. Left Click any cell on the board to begin
  3. Visible numbers represent how many bombs are present in the 8 surrounding cells
  4. Right Click any cell to plant a flag and designate cell as a bomb
  5. The goal of each game session is to clear all cells without clicking a bomb
LevelBombsGrid Size
Beginner109 x 9
Intermediate4016 x 16
Expert9916 x 30

Notes

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