Proyek
Lihat di GitHub
blaze33/way-of-life
Tentang
Conway's game of life implemented in JavaScript & WebAssembly, rendered to canvas.
Gim dan emulasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliThe 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.
Jelajahi proyek terkait
Memuat…