Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.7 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.7 KB

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 🦀🕸