Skip to main content

A tetris game runs in the terminal

Project description

gameplay
English | 中文

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

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).

Going to be implemented(Maybe)

  1. pause and resume feature
  2. start and game over ui
  3. better display and sound
  4. ...

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetris_terminal-0.1.2.tar.gz
  • Upload date:
  • Size: 9.8 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.2.tar.gz
Algorithm Hash digest
SHA256 6f06e21aeb85c913d11ca595679c14fbb21a381a3485e716884e0f0c81d6d3b0
MD5 304605d5ed1fcef677acd993dfd68a70
BLAKE2b-256 b66f4eeb505686f7f21db5b178cb333768e4560d0e47af5d8619cfcede436349

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tetris_terminal-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ffc573b69673d671da97c1c1851a339b7cf646f05f652492d960cd9147f491
MD5 616ee3db051c88df30cb4413e1d2e2e3
BLAKE2b-256 d21d09274cd9b7540c3636d3e309186d822e120e856b9c6738145326f4bb078a

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