/rust-wasm-game-of-life

Implement Conway's Game of Life in Rust and WASM as an exercise

Primary LanguageRustApache License 2.0Apache-2.0

Conway's Game of Life in Rust + WASM

An exersise in Rust and WASM implementing Conway's Game of Life

Pre-requisites

Setup

  • Go to the www folder and run npm i in order to install all Javascript dependencies
  • Go to the game's root folder and run wasm-pack build

    This will install all dependencies needed for compiling the game to wasm (it takes some time)

  • Link the wasm module to npm by going into the newly generated folder pkg and running npm link. Then go to the www folder and run npm link wasm-game-of-life

Running the game

  • Go to the www folder and run npm start