by blaze33

blaze33 / way-of-life

Conway's game of life implemented in JavaScript & WebAssembly, rendered to canvas.

215 Stars 10 Forks Last release: Not found MIT License 97 Commits 7 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

The Way of Life

Conway's game of life implemented both in JavaScript and in WebAssembly using a canvas element for rendering.

npm Build Status


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


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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.