Need help with way-of-life?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

blaze33
218 Stars 11 Forks MIT License 97 Commits 10 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 98,754
CSS
Heroku
C
mjml
92 commits
# 255,960
CSS
WordPre...
C
webasse...
1 commit

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

Installation

The npm package only links to the ES6 code so it's only usable as a dependency for now.

bash
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.

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.