fhpriamo / wasm-game-of-life

Conway's Game of Life on the browser with WebAssembly, built with Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wasm-game-of-life

Conway's Game of Life on the browser with WebAssembly ๐Ÿ•ธ, built with Rust ๐Ÿฆ€.

Game of Life running in the browser

๐Ÿšด Running

You'll need the npm command and the Node.js runtime in order to install the dependencies and run the app. You can download both in one take from the Node.js project website.

  1. Clone this repository anyware in your machine;
  2. Move to the project root folder;
  3. Execute npm install to install and configure the dependencies;
  4. Run the web server on port 8080 to serve the app with npm run start;
  5. Point your browser to http://localhost:8080 to see it in action!; ๐Ÿ˜ฒ

๐Ÿ“ Files

  • You can peek the essential Rust code used to generate the .wasm in rust/lib.rs;
  • The generated .wasm and respective JavaScript bindings can be found in src/lib/;

โš–๏ธ Licensing

This project is a composition of several slightly adapted pieces of code from the rustwasm book. Thus, it strives to accord with the rustwasm book licensing terms. Please, open an issue if you spot any license infrigement.

About

Conway's Game of Life on the browser with WebAssembly, built with Rust.

License:Apache License 2.0


Languages

Language:JavaScript 43.9%Language:Rust 36.1%Language:HTML 13.1%Language:TypeScript 6.9%