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.2a4.tar.gz (9.0 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.2a4-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetris_terminal-0.0.2a4.tar.gz
  • Upload date:
  • Size: 9.0 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.2a4.tar.gz
Algorithm Hash digest
SHA256 723d0cfe4e8e0659f24e55b3bc9f4d0a702cfd4fb5990997b9a0d9706f64f519
MD5 6ddbdf5b6047a431bcde8b9aab0bea70
BLAKE2b-256 f2b693d52e8f72b77cc7cc2f3c876695334b994f82a8eb58538b50e885089875

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tetris_terminal-0.0.2a4-py3-none-any.whl
Algorithm Hash digest
SHA256 afd7ba6f3a5ddff0e7ec1a8bfcd0eab0fedbb9d6d8db59f75c6b4dd7e9b677f2
MD5 80b79475562083b48c3de39032111ed9
BLAKE2b-256 613a558305e18fe24e455834aa0368a61c5dccf20e6ba517b829d615d39d1176

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