The game 2048 is written in Rust that can be played with the GUI in a command line terminal or a browser by using webassembly. Both share the same library that contains the game logic.
cargo run -p wasm_terminal_2048_cli
cd wasm && ./build.sh
./start-server-py2.sh
./start-server-py3.sh
http://localhost:6001
on browserNote: build NodeJS package by changing the build options in wasm-pack
in build.sh
wasm-pack build options
cargo doc --open
MIT LICENCE