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
-
Notifications
You must be signed in to change notification settings - Fork 0
OsirisX3R0/nonogram-maker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|