mineblown-logic

1.0.8 • Public • Published

MineBlown-Logic

Minesweeper game logic implementation easy for use. Created as part of MineBlown project (http://minesweeper.mineblown.com)

About MineBlown Project

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.

Features

  • [x] Custom game board.
  • [x] Stopwatch.
  • [x] Mines left.
  • [x] Set flags.

Install

npm install mineblown-logic --save

Require

var mineblown = require("mineblown-logic");

Usage

Board Game Initialization

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);

Contribution

Issue, idea, PR are welcomed.

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.813latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.813
1.0.72
1.0.62
1.0.51
1.0.41
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i mineblown-logic

Weekly Downloads

23

Version

1.0.8

License

MIT

Last publish

Collaborators

  • hezko