play-2048 0.1.0

Rust implementation of the famous 2048 game in the terminal
play-2048-0.1.0 is not a library.
Visit the last successful build: play-2048-1.0.0

2048-rs

Travis Build Status

This is a Rust implementation of the famous 2048 game which runs in the terminal.

In addition to the standard user inputs, an AI can be used to perform the moves. This AI leverages the expectiminimax algorithm to recommend the best next move at each step.

Installation from source

> git clone https://github.com/adrienball/2048-rs.git
> cd 2048-rs
> cargo run --release

Some parameters, like the probability of drawing a 4 tile, can be changed by passing additional parameters to the cargo run command:

> cargo run --release -- --proba-4 0.5

To get the list of available options, simply run:

> cargo run --release -- --help

License

Apache 2.0/MIT

All original work licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.