A Tetris game written in Python.
Project description
Tetris Game
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
Release history Release notifications | RSS feed
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.12.tar.gz
(21.7 kB
view details)
Built Distribution
File details
Details for the file tetris_py-0.0.12.tar.gz
.
File metadata
- Download URL: tetris_py-0.0.12.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c350e4ea0d8a71cdf67cf244fbd327c3b86d8bc0be54ed659d50114cdd035e4 |
|
MD5 | b84f1ea6c16b6d95d597ebfa66a3373e |
|
BLAKE2b-256 | 3ab9193b0e7ccd2c908b825f5eed5d6526e3c88fce47c856bc73b45d4f6691f0 |
File details
Details for the file tetris_py-0.0.12-py3-none-any.whl
.
File metadata
- Download URL: tetris_py-0.0.12-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba4f87cca1bd97302026775011f6ac0e05f50027635bc051b70fa8cd84a87ce0 |
|
MD5 | f088fa65e78ff24312db8ba36e4de834 |
|
BLAKE2b-256 | edf69d9a616259d3fc22b6467f67f3c85e4ff966a203fc9fbfd35dfbdd683dfe |