Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shalzz/wasm-game-of-life

Game of Life implementation using Rust, Javascript and WebAssembly!
https://github.com/shalzz/wasm-game-of-life

Last synced: 10 days ago
JSON representation

Game of Life implementation using Rust, Javascript and WebAssembly!

Awesome Lists containing this project

README

        

Game of Life


Conway's Game of Life implementation using Rust, Javascript and WebAssembly!

## About

Try it out at !

## Run

Build the webassembly module with `wasm-pack build`

```
wasm-pack build
```

start the webserver with `npm run start`

```
cd www
npm run start
```

Open the webpage at http://localhost:808

## Build

### 🛠️ Build with `wasm-pack build`

```
wasm-pack build
```

### 🔬 Test in Headless Browsers with `wasm-pack test`

```
wasm-pack test --headless --firefox
```

### 🎁 Deploy

1. Build the wasm module
```
wasm-pack build
```

2. Bundle with our js and html
```
cd www
npm run build
```

3. Deploy to @zeit/now
```
cd www/dist
now
```