An implementation of Conway's Game of Life based on this tutorial.
To start the server, enter:
cd www
npm install
npm run start
wasm-pack
- Quick start method
- Cargo method:
cargo install wasm-pack
rust
Then, within the convida directory, enter:
wasm-pack build
to build the Rust code in src/lib.rs
to the pkg
directory.
- Introduce an
<input type="range">
widget to control how many ticks occur per animation frame. - Add a button that resets the universe to a random initial state when clicked. Another button that resets the universe to all dead cells.
- On Ctrl + Click, insert a glider centered on the target cell. On Shift + Click, insert a pulsar.