https://github.com/trendev/tetris-cli
https://github.com/trendev/tetris-cli
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/trendev/tetris-cli
- Owner: trendev
- Created: 2025-02-02T18:18:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-02T16:16:21.000Z (about 1 year ago)
- Last Synced: 2025-05-02T17:19:46.029Z (about 1 year ago)
- Language: Rust
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tetris CLI (Rust)
A simple command-line Tetris clone with classic features:
- **7-Bag Randomizer** (modern Tetris style)
- **Piece Hold** (`C` key)
- **Next Piece Preview** (3 pieces)
- **Soft Drop** (Down arrow), **Hard Drop** (Space)
- **Scoring & Levels** (increasing speed)
## How to Play
- **Left / Right Arrows**: Move the falling piece left or right
- **Down Arrow**: Soft drop (speeds up piece descent)
- **Up Arrow**: Rotate the piece clockwise
- **`Z`**: Rotate the piece counterclockwise
- **`Space`**: Hard drop (instantly drops the piece to the bottom)
- **`C`**: Hold the current piece (swap with the previously held piece)
- **`Esc`** or **Ctrl + C**: Quit the game
### Scoring
- **Single Line Clear**: 40 points × (level + 1)
- **Double**: 100 points × (level + 1)
- **Triple**: 300 points × (level + 1)
- **Tetris (4 lines)**: 1200 points × (level + 1)
### Levels & Speed
- **Level** increases every 10 lines cleared.
- As the level goes up, pieces drop faster (gravity interval decreases).
Enjoy the classic Tetris experience right in your terminal!