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.14.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

tetris_py-0.0.14-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tetris_py-0.0.14.tar.gz
  • Upload date:
  • Size: 22.9 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.14.tar.gz
Algorithm Hash digest
SHA256 5b71b2a9d336d6f6dc8d13abb397d2fcfa1bac188334cfa1679ad25141704aad
MD5 1326e2a9bfe533ae6d758b266ce50bf0
BLAKE2b-256 dbe9fda0462fa254d38ebca1639d953af29d7d99ba312c0ba54c8e380d524c3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tetris_py-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.14-py3-none-any.whl
Algorithm Hash digest
SHA256 a9738429af6b0721ba5260ee26980b0fefc379b223d232d134dfc963090c3232
MD5 09e6ee7a28f39a1b7871410c7cb5e915
BLAKE2b-256 f7224ea2a85d9729f1e9541d845dafd7b2bc09cae27f7d8561a736bc69e45b98

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