Skip to content

memohnsen/tui-2048

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUI 2048

A terminal-based implementation of the classic 2048 game, written in Rust using ratatui and crossterm.

Screenshots

TUI 2048 game board

TUI 2048 game mode picker

Features

  • 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.

Installation

Ensure you have Rust and Cargo installed. Then, you can install the release or build the game locally with:

cargo run --release

To build a release binary:

cargo build --release

The compiled binary will be available at target/release/tui-2048.

Controls

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

About

A TUI based 2048 game written in Rust using Ratatui

Resources

Stars

3 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages