0.3.0 • Published 4 years ago

way-of-life v0.3.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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.

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.

0.3.0

4 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago