the-game-of-life
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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'

/the-game-of-life/

    Package Sidebar

    Install

    npm i the-game-of-life

    Weekly Downloads

    3

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    28.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • shuayarmak