Skip to content

An implementation of Conway's Game of Life using Rust and WebAssembly.

Notifications You must be signed in to change notification settings

nchrisr/wasm-game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

An implementation of Conway's Game of Life using Rust and WebAssembly.

🚴 Usage

🛠️ Build with wasm-pack build

wasm-pack build

Install dependencies with npm

cd www && npm install

Run locally

npm run start

🔬 Test in Headless Browsers with wasm-pack test

For firefox

wasm-pack test --headless --firefox

OR

For chrome

wasm-pack test --chrome --headless

Known Issues

  • If the error in the image below occurs when running npm run start on MacOS, it can be fixed by running export NODE_OPTIONS=--openssl-legacy-provider.

    ssl issue image.

  • Testing with Chrome may fail due to issues with chromedriver version compatibility. You can see more info about this here. To fix:

    • Check the version of chrome you have by opening Chrome and going to Settings > About Chrome
    • Check the compatible Chrome version by looking here
    • Download and replace the the executable which is usually located in /Users/<USERNAME>/Library/Caches/.wasm-pack/chromedriver-1b467be6b1263401 (replace USERNAME with the appropriate username for your machine).

🔋 Batteries Included

Built with 🦀🕸

About

An implementation of Conway's Game of Life using Rust and WebAssembly.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published