Skip to content

Latest commit

 

History

History

pkg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Convida

An implementation of Conway's Game of Life based on this tutorial.

Release

To start the server, enter:

cd www
npm install
npm run start

Screenshot of Convida

Development

Dependencies

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.

Alternatives

Improvements on the Tutorial

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