/rs2048

2048 in Rust

Primary LanguageRustMIT LicenseMIT

rs2048

A clone of 2048 written in Rust. Use the arrow keys to move and R to reset.

This is work in progress but if you want to jump right in, take a look at this demo.

Running the application

  1. Install cargo-web using cargo as
cargo install -f cargo-web
  1. Compile to WebAssembly using Rust's native WebAssembly backend:
cargo web start --target=wasm32-unknown-unknown
  1. Visit http://localhost:8000 with your browser to view the application.

For more information, see the Github repository and documentation of stdweb.