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.5.tar.gz
(16.6 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.5.tar.gz.
File metadata
- Download URL: tetris_terminal-0.2.5.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc4419ea791bcfaace6c1a196e60f7a977f575d9954f09e035d5acf48b2c202
|
|
| MD5 |
c45bc85d71ce7ab75e4da69d108ab827
|
|
| BLAKE2b-256 |
4ec4388299c3b2047028bdce2d99024639774c21ff7e2dde39a64e3158c0c2bc
|
File details
Details for the file tetris_terminal-0.2.5-py3-none-any.whl.
File metadata
- Download URL: tetris_terminal-0.2.5-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c79ed7c6a909637af7ed89091f4a0e6360bf6f72dcb54855a695459f18a5268f
|
|
| MD5 |
b56cfe12bd242d07dac6800e271c2f3f
|
|
| BLAKE2b-256 |
126b2dc55d40aa9df9c6122d84eef581699255fbd416c50f920a788c2b3ab6b7
|