Minesweeper game logic implementation easy for use. Created as part of MineBlown project (http://minesweeper.mineblown.com)
MineBlown is a free to play retro looking cutting edge minesweeper online game. The project started in order to fix the current abusive attitude toward minesweeper as an old irrelevant game, by providing twists in a way that reaches its full potential.
- [x] Custom game board.
- [x] Stopwatch.
- [x] Mines left.
- [x] Set flags.
npm install mineblown-logic --save
var mineblown = require("mineblown-logic");
var { Board, Game, RandomBoardLocationsProvider } = require("mineblown-logic");
var minesIndices = RandomBoardLocationsProvider.getRandomIndexesByBoardSize(10, 10, 10);
var board = new Board(10, 10, minesIndices);
var g = new Game(board);
Issue, idea, PR are welcomed.
MIT