Skip to content

toly11/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published