Crates.io | wasm_terminal_2048 |
lib.rs | wasm_terminal_2048 |
version | 0.1.0 |
source | src |
created_at | 2021-01-02 14:13:48.994799 |
updated_at | 2021-01-02 14:13:48.994799 |
description | Game 2048 in both Webassembly and commandline |
homepage | https://github.com/ryanpig/wasm_terminal_2048 |
repository | https://github.com/ryanpig/wasm_terminal_2048 |
max_upload_size | |
id | 330568 |
size | 110,171 |
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