A tetris game runs in the terminal
Project description
Tetris Terminal🎮
A terminal-based Tetris game written in Python using the curses library.
Features
- Modern Tetris design following the Tetris Design Guideline
- Extended Placement
- Next Piece Preview
- SRS System
- Piece Holding
- Shadow Piece
- Modern Scoring System
- Modern Level System
Platform Support
Based on Python's curses module:
- ✅ Linux/macOS: Works out of the box
- ✅️ Windows: With
windows-curses - Can run on basically any terminal setup, even a linux tty.
Installation & Usage
pip install tetris-terminal
tetris
Controls
| Key | Action |
|---|---|
a, ← |
Move left |
d, → |
Move right |
w, ↑,x |
Rotate cw |
z |
Rotate ccw |
s, ↓ |
Soft drop |
space |
Hard drop |
c |
Hold |
p |
Pause |
q |
Quit game |
License
MIT License - see LICENSE for details.
Acknowledgements
Idea from tinytetris (a C implementation).
Going to be implemented(Maybe)
- sound
- ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tetris_terminal-0.2.0.tar.gz
(13.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tetris_terminal-0.2.0.tar.gz.
File metadata
- Download URL: tetris_terminal-0.2.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
633e13060cdc401512d29c0528f44d64c6ce3ae6d439621862d2acb32bb853f1
|
|
| MD5 |
4aadc9fc5756417fab70a79ecbab6652
|
|
| BLAKE2b-256 |
639a2292b3b5990c3edeadddf952dc47719e2122bac810d974c5147936d6ff37
|
File details
Details for the file tetris_terminal-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tetris_terminal-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
616b9de935422be6f62336e035df2e16ac3bd0f84d5618308f74f0e8b758f224
|
|
| MD5 |
e3539bde68b6fb9b9136f42a20f9c0cd
|
|
| BLAKE2b-256 |
23ecb1d30d650155bb0919c6424489945fac68d5ed13aac6b7e2bd707af43ad5
|