mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-01 18:02:15 +00:00
16 lines
547 B
Markdown
16 lines
547 B
Markdown
Conway's Game of Life
|
|
=====================
|
|
|
|
An [AssemblyScript](http://assemblyscript.org) example. Continuously updates the cellular automaton and visualizes its state on a canvas.
|
|
|
|
Instructions
|
|
------------
|
|
|
|
To build [assembly/game-of-life.ts](./assembly/game-of-life.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
|
|
|
```
|
|
$> npm run build
|
|
```
|
|
|
|
Afterwards, open [game-of-life.html](./game-of-life.html) in a browser (ideally one that allows `fetch`ing the `.wasm` from the local filesystem).
|