The Way of Life
Conway's game of life implemented both in JavaScript and in WebAssembly using a canvas element for rendering.
Installation
The npm package only links to the ES6 code so it's only usable as a dependency for now.
npm install --save-dev way-of-life
Usage
// initialize the game with an empty 40x40 matrixconst engine = 40 40engine // initialize some living cells around the center of the matrix // compute the next state of gameengine
See the demo code for a more advanced usage.