nonogram-maker
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Nonogram Maker

import { Board } from "nonogram-maker";

// Creates a 6x6 board with 5 lives to start
let board = new Board(
  [
    [0, 0, 1, 1, 0, 0],
    [0, 1, 0, 0, 1, 0],
    [1, 0, 1, 1, 0, 1],
    [1, 0, 0, 0, 0, 1],
    [0, 1, 0, 0, 1, 0],
    [0, 0, 1, 1, 0, 0],
  ],
  { lives: 5 }
);

console.log(board.state); // GENERATED

board.toggleOpenMany([{ x: 0, y: 0 }]);
console.log(board.lives); // 4

Readme

Keywords

none

Package Sidebar

Install

npm i nonogram-maker

Weekly Downloads

3

Version

1.0.5

License

ISC

Unpacked Size

17.6 kB

Total Files

14

Last publish

Collaborators

  • osirisx3r0