game-of-life-logic
Logic for Conway's Game of Life. It uses a looping-matrix so that entities loop from edge to edge.
Install
$ npm install --save game-of-life-logic
Usage
var GameOfLife = ;var gameOfLife = 5 5gameOfLifegameOfLifematrix/* => [ [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 1, 1, 1, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0] ]*/gameOfLifegameOfLifematrix/* => [ [0, 0, 0, 0, 0], [0, 0, 1, 0, 0], [0, 0, 1, 0, 0], [0, 0, 1, 0, 0], [0, 0, 0, 0, 0] ]*/
API
Coming soon...
License
MIT © David da Silva