Crates.io | twothousand-forty-eight |
lib.rs | twothousand-forty-eight |
version | 0.22.1 |
source | src |
created_at | 2022-06-16 11:38:27.312355 |
updated_at | 2023-09-03 17:02:19.502211 |
description | a basic engine and move validator for the game 2048 |
homepage | |
repository | https://github.com/hallabois/twothousand-forty-eight |
max_upload_size | |
id | 607416 |
size | 148,304 |
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).
Run cargo test
to run the default tests.
Run cargo test -- --ignored
instead to run expensive tests (such as validating 10 000 real games)
Run cargo build --release
to build
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.