Projects
View on GitHub
blaze33/way-of-life
About
Conway's game of life implemented in JavaScript & WebAssembly, rendered to canvas.
Games & EmulationMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalThe 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
import {Engine, acorn} from 'way-of-life'
// initialize the game with an empty 40x40 matrix
const engine = new Engine(40, 40)
engine.init()
// initialize some living cells around the center of the matrix
acorn(engine, 20, 20)
// compute the next state of game
engine.computeNextState()
See the demo code for a more advanced usage.
Explore related projects
Loading…