tetris-tui-rs

Crates.iotetris-tui-rs
lib.rstetris-tui-rs
version0.1.0
created_at2026-01-16 14:39:10.855049+00
updated_at2026-01-16 14:39:10.855049+00
descriptionA terminal Tetris game written in Rust using Ratatui
homepagehttps://github.com/traitimtrongvag/Tetris-tui.git
repositoryhttps://github.com/traitimtrongvag/Tetris-tui.git
max_upload_size
id2048693
size56,599
PhucAnn (traitimtrongvag)

documentation

README

Tetris-tui

Rust Terminal License

A Tetris game for the terminal written in Rust during my free time :D

demo

Features

  • Beautiful TUI interface!
  • Works well in all environments!

Dependencies

  • Rust 1.70 or higher
  • crossterm 0.27
  • ratatui 0.26
  • rand 0.8

Installation

Option 1: Install from crates.io (recommended)

cargo install tetris-tui-rs

Run:

tetris

Option 2: Build from source

git clone https://github.com/traitimtrongvag/Tetris-tui.git
cd Tetris-tui
cargo build --release

Run:

cargo run --release

Usage

  • Press Esc to go back or Q to quit.

Game Play

  • Rotate block
  • Move left / right
  • Move down
  • Space Hard drop
Commit count: 0

cargo fmt