twothousand-forty-eight

Crates.iotwothousand-forty-eight
lib.rstwothousand-forty-eight
version0.22.1
sourcesrc
created_at2022-06-16 11:38:27.312355
updated_at2023-09-03 17:02:19.502211
descriptiona basic engine and move validator for the game 2048
homepage
repositoryhttps://github.com/hallabois/twothousand-forty-eight
max_upload_size
id607416
size148,304
Elias Eskelinen (xypine)

documentation

https://docs.rs/twothousand_forty_eight

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.

Commit count: 120

cargo fmt