Flexible game of 2048 in the terminal as TUI.
Find a file
2022-10-01 18:28:34 +02:00
rs48 bumped version, added target link for aur scripts 2022-09-30 16:27:18 +02:00
rs48_lib bumped version 2022-09-30 16:25:47 +02:00
.gitignore initial release 2022-04-04 14:23:20 +03:00
Cargo.lock updated lock 2022-10-01 18:28:34 +02:00
Cargo.toml updated readme 2022-09-29 15:54:07 +02:00
README.md added help in readme 2022-09-29 15:56:06 +02:00
rustfmt.toml changed standard to hard tabulations 2022-04-04 15:05:36 +03:00

rs48

Description

It is a game of 2048 that plays in the terminal as a TUI, it has a lot of configurability and implements a few types of AI.

Usage

Compiled with the rustup toolchain.

Installing

cargo install rs48

alternatively, you can clone this repo and build it yourself.

Building

git clone "https://github.com/MajorBarnulf/rs48.git"
cd rs48/rs48
cargo build -r

Running

cargo run -r

Help

Usage: rs48 [OPTIONS]

Options:
  -s, --size <SIZE>
          size of the grid on which the game is played [default: 4]
  -w, --spawn <SPAWN>
          number of tiles that will spawn on the grid each turn [default: 1]
      --no-clear
          disable clearing the terminal to refresh the screen
  -k, --display-skips <DISPLAY_SKIPS>
          skips the refresh of that many turns, allow AIs to play faster [default: 0]
  -d, --delay <DELAY>
          delay in ms to add between each turns [default: 0]
  -c, --controller <CONTROLLER>
          the controller to use for the game [default: player]
      --color-seed <COLOR_SEED>
          sets a seed for the color pattern, 0 for random, default is 35 [default: 35]
  -h, --help
          Print help information
  -V, --version
          Print version information