twothousand-forty-eight
v0.22.1
Published
a basic engine and move validator for the game 2048
Downloads
9
Readme
twothousand-forty-eight
a basic engine and move validator for the game 2048
This is a library written in rust, the documentation can be found at docs.rs.
The most up-to-date version can be downloaded from crates.io or the wasm version from npm.
See LICENSE for information on the used license (MIT).
How-tos
Testing
Run cargo test
to run the default tests.
Run cargo test -- --ignored
instead to run expensive tests (such as validating 10 000 real games)
Building
Run cargo build --release
to build
Publishing
Run the provided publish.sh to publish the package to crates.io and the wasm bindings to npm. You need to have wasm-pack installed in order to build the npm package.