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
- Scoring System
- Level System
Platform Support
Based on Python's curses module:
- ✅ Linux/macOS: Works out of the box
- ✅️ Windows: With
windows-curses
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 |
q |
Quit game |
License
MIT License - see LICENSE for details.
Acknowledgements
Idea from tinytetris (a C implementation).
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.1.0.tar.gz
(9.0 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.1.0.tar.gz.
File metadata
- Download URL: tetris_terminal-0.1.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f966800db5bdc1395bc1c351fc556a794a0b8943143e2d8d5dc1407cc21d468
|
|
| MD5 |
ee4d143dccd3b073b770856e5b822a0b
|
|
| BLAKE2b-256 |
808ff4bca576fcc65bdebc280edb6eb16eca8a45a6e7f646c4e89a6fcfda5d0a
|
File details
Details for the file tetris_terminal-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tetris_terminal-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b15447d750f3c7ddc717d1336f7e5cdecaef43cfc1e6e02bc3f4484c74c1a46a
|
|
| MD5 |
e4ad0a5d2976d1296e653f21b56063a7
|
|
| BLAKE2b-256 |
2d7f374e2ab134dc63a70ca63c59c2586a68439faf003fa57e61ff3f8820850f
|