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.1.tar.gz
(14.7 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.1.tar.gz.
File metadata
- Download URL: tetris_terminal-0.2.1.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
253da2a94f083111d0bf623a29a3c6b0462b9f10e438d209800b3d3612f4dcb0
|
|
| MD5 |
85ded89e630cc69fa77856f7b13c0f82
|
|
| BLAKE2b-256 |
ae73e2981c117c9c96dcb8b87660f54b795f0d120c8bf63aa6c77c6d2ec0faf4
|
File details
Details for the file tetris_terminal-0.2.1-py3-none-any.whl.
File metadata
- Download URL: tetris_terminal-0.2.1-py3-none-any.whl
- Upload date:
- Size: 15.3 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 |
2ccedbd278fdf066ec8e810bb1e05e497fa22bc863a63782a33fec1337839bf7
|
|
| MD5 |
2f67b36842e4843b72621e7b33cbd801
|
|
| BLAKE2b-256 |
82a139f2fb2eb448bb6d2e11a25a05aa3ce65a213c8c32a08f9dd2b51285f396
|