@hornta/minesweeper
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Minesweeper

The backbone logic for building a minesweeper game. Works in both Node.JS and the browser.

Install

npm install @hornta/minesweeper

Usage

import { Board } from "@hornta/minesweeper";

const board = new Board({ width: 30, height: 16, mines: 99 });

board.open(0, 0); // Open a square
board.flag(20, 10); // Flag a square

Readme

Keywords

Package Sidebar

Install

npm i @hornta/minesweeper

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

93.3 kB

Total Files

12

Last publish

Collaborators

  • hornta