twothousand-forty-eight
TypeScript icon, indicating that this package has built-in type declarations

0.22.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i twothousand-forty-eight

Weekly Downloads

1

Version

0.22.1

License

MIT

Unpacked Size

321 kB

Total Files

7

Last publish

Collaborators

  • eskearn