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
    • 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


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.1.tar.gz (9.1 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.1.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file tetris_terminal-0.1.1.tar.gz.

File metadata

  • Download URL: tetris_terminal-0.1.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tetris_terminal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f22dcc7cdaaf5821a6600dbafaff6f47e9e97157d9e12ce902739e71b9baa086
MD5 2dafd70f26d1ef7f51ac9907052ec91d
BLAKE2b-256 53ce49a1ab9efc3458880e365be572c5e0ae5a8db9940e439503a7aaf53d0e91

See more details on using hashes here.

File details

Details for the file tetris_terminal-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tetris_terminal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c09bbccdd3ccf249e3fccc5ee15462d1655b15bbdb3d2cad6d0d6866fca21957
MD5 4789d952f409fb73f69a619af1e3e237
BLAKE2b-256 147b896740d8eeabd5c9267b040320a9334b52286672dfa5be23ae22656a1510

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