Skip to main content

A tetris game runs in the terminal

Project description

gameplay

Tetris Terminal🎮

A terminal-based Tetris game written in Python using the curses library.

License: MIT Python 3.8+

Features

  • Modern Tetris design following the Tetris Design Guideline
    • Extended Placement
    • Next Piece Preview
    • SRS System
    • Piece Holding
    • 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


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.2a2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tetris_terminal-0.0.2a2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file tetris_terminal-0.0.2a2.tar.gz.

File metadata

  • Download URL: tetris_terminal-0.0.2a2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for tetris_terminal-0.0.2a2.tar.gz
Algorithm Hash digest
SHA256 bbdc351a5a004c860c1bb563d2e2e4c4d96900b2728b339be32d33c7185c37fc
MD5 9b848e8ef05a599732fc13e975e75a41
BLAKE2b-256 5f180353a1f98259b800a91f998ef89707c2fb20382f9f32f9bd1b7ba5f6890a

See more details on using hashes here.

File details

Details for the file tetris_terminal-0.0.2a2-py3-none-any.whl.

File metadata

File hashes

Hashes for tetris_terminal-0.0.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb35c2c947611b3eeb1b2b174ce9b7bbc14c75604a0506bf2b66c1e6947f8730
MD5 496f0b5d4e1df992d5f725fbb911ba07
BLAKE2b-256 04dbc15898754dacff7d30c3003ed1ef355ee520d787c670db28645c41c851af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page