Skip to main content

A Tetris game written in Python.

Project description

Tetris Game

Build PyPI - Version PyPI - Python Version

A Tetris game written in Python.

This has 2 possible interfaces:

  • pygame GUI (the default/main version)
  • command-line (minimal/basic version with reduced functionality)

Install

pip

The preferred way to install Tetris is via pip:

pip install tetris-py

To play, you then simply run:

tetris-py

For the CLI version, use tetris-py-cli instead.

source

An alternative way is to simply clone the repo and use the ./run script:

git clone git@github.com:tomapopov/tetris-py.git
cd tetris-py
./run

For the CLI version, use ./run_cli instead.

Dependencies

The GUI version uses the pygame package, which is listed in requirements.txt.

License

Copyright 2024 Toma Popov.

Distributed under the terms of the Apache 2.0 license.

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_py-0.0.13.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

tetris_py-0.0.13-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file tetris_py-0.0.13.tar.gz.

File metadata

  • Download URL: tetris_py-0.0.13.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tetris_py-0.0.13.tar.gz
Algorithm Hash digest
SHA256 6880392eba0cd79dcd75d78d04490053b9ae974d11e4ada4514da90cb293e3ad
MD5 40992abc92a5eeaf2087a5e94c00ed97
BLAKE2b-256 caebf840e31082e140424644080411fbf61dd1c7e90980fe87370fd13cd374f6

See more details on using hashes here.

File details

Details for the file tetris_py-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: tetris_py-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tetris_py-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 241a390ecfacbfebdd180d1ec01a89778fed0bd3f3a294271f4d4c2e2ca322cb
MD5 533cca122c52a8a2c0066d4d2a866b2f
BLAKE2b-256 7a2dc20a869ca75d750ed0d1a9c6c7d5dcd095c2bf057c2c44c8a02a2e4f93a7

See more details on using hashes here.

Supported by

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