💣 A simple minesweeper in javascript
GPL-3.0 License
index.html
to open the file in your default browserHere is a quick guide on how to play the game:
Right click
on a gray square to unveil it.Left click
on a gray square to flag it (a red flag will appear).Here are the features to come. Find the already deployed features in the changelog.md
I used javascript and CSS without any framework (beside the one for testing: Jasmine, used with Karma on Travis CI). The minesweeper is rendered in a canvas object.
The project is build with:
Sketch.js
that does the control and set-up.Board.js
for the minesweeper board model that is rendered through a lot of zones.Zone.js
defines the zones to be displayed in the board.Explosion.js
is used to create explosion when a mine explode.Timer.js
is for the timer used in the game.