0.1.0 • Published 2 years ago
the-game-of-life v0.1.0
game of life
installation
npm i the-game-of-life
a javascript class for creating a game-of-life game
usage example:
import { GameOfLife } from "the-game-of-life";
const grid = [
[0, 0, 0, 0],
[0, 1, 0, 0],
[0, 1, 1, 0],
[0, 0, 0, 0]
];
const game = new GameOfLife(grid);
game.grid; // get the current grid
game.next(); // perform 1 'tick'
0.1.0
2 years ago