2048

How to play

First, clone this repository

git clone https://github.com/7ma7X/2048.git cd 2048

To start game,

cargo build ./target/debug/rust2048

or simply

cargo run

| KEY | manipulation | | ---- | ---- | | i / I | move up | | m / M | move down | | j / J | move left | | k / K | move right |

if you want to change this keybind, please modify the conditions in src/main.rs listed below...

```rust if input.startswith("i") || input.startswith("I") { // move up

} else if input.startswith("m") || input.startswith("M") { // move down

} else if input.startswith("j") || input.startswith("J") { // move left

} else if input.startswith("k") || input.startswith("K") { // move right ```

How to test

cargo test