Play 2048 on the command line. This game is implemented in rust-lang.
- Clone this repo
git clone [email protected]:123vivekr/play2048.git
- Enter
play2048
directory
cd play2048
- Start the CLI game!
cargo run <board_dimension> [target]
Parameters:
board_dimension
: Dimensions of the board. Example4
for a 4x4 board.target
: Target to achieve to win the game. (Must be a power of 2). Example2048
. (Defaults to2048
)
Example: cargo run 4 2048