a Minesweeper port for the browser ! it works on phones too and you can try it here !
this port tries to be as faithful as possible to the original game, concerning rules, feel, and especially UI :3
some things havent been added, like the score, and some things are a lil different, like the smiley button
all the rules are the same as the original minesweeper :)
click the buttons at the top for game customization !
minesweeper.js
is modular, so be aware of that
<script type='module'>
then you can create minesweeper game instances at will
import MinesweeperInstance from './minesweeper/minesweeper.js';
// create a new instance !
var instance = new MinesweeperInstance(canvas, width, height, mines);
instance.onload = function() {
this.drawWholeGrid();
this.mouse.start();
};
nectarboy - 2021