A terminal-based implementation of the classic 2048 game, written in Rust using ratatui and crossterm.
- High Scores: Automatically saves your scores and highest tile to
HOME/.config/2048/scores.txt. - Vim-like Controls: Support for both arrow keys and Vim bindings (
h,j,k,l). - Timed Game Modes: Play timed games of 5 or 10 minutes.
- Varying Board Sizes: Change board size from 3x3 up to 6x6.
Ensure you have Rust and Cargo installed. Then, you can install the release or build the game locally with:
cargo run --releaseTo build a release binary:
cargo build --releaseThe compiled binary will be available at target/release/tui-2048.
| Key | Action |
|---|---|
↑ or k |
Move Up |
↓ or j |
Move Down |
← or h |
Move Left |
→ or l |
Move Right |
n |
New Game |
s |
View High Scores |
q |
Quit |

