A tetris game runs in the terminal
Project description
Tetris Terminal🎮
A terminal-based Tetris game written in Python using the curses library.
Features
- Classic Tetris gameplay with 7 standard tetrominoes
- Real-time score
- Next piece preview
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 |
Rotate piece |
s |
Hard drop |
q |
Quit game |
License
MIT License - see LICENSE for details.
Acknowledgements
Game logic adapted 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.0.1.tar.gz
(4.8 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.0.1.tar.gz.
File metadata
- Download URL: tetris_terminal-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572c4d5d87b198f96181839642d91691861208a4d15ecb0487237382a3a10b68
|
|
| MD5 |
1853f271af00f8c6ceede24c9aefe74c
|
|
| BLAKE2b-256 |
7fddf48e5042e3c90b63fa1cfab0f9077a30dcf77962d9c4ac707d5e8b215ff5
|
File details
Details for the file tetris_terminal-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tetris_terminal-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ade58e0f3700d2a15bd228b6c120554173aa52fa3b45a3a3cdf8302af80ba87c
|
|
| MD5 |
88cc70ac6c6b9d57efe945811d4826b8
|
|
| BLAKE2b-256 |
75ee310a245d12d56c0814e9b363791156ad282bb73822346e9cae9fd88fa222
|