1.0.5 • Published 2 years ago

nonogram-maker v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago