Pre-release
This release is a pre-release and may not be stable for production use.
python-tetris: a simple and modular tetris library
Intro
A simple and modular library for implementing and analysing Tetris games, guideline-compliant by default
>>> import tetris
>>> game = tetris.BaseGame(board_size=(4, 4), seed=128)
>>> game.queue
<SevenBag object [J, O, L, I, T, S, J, ...]>
>>> for _ in range(4): game.hard_drop()
...
>>> game.playing
False
>>> print(game)
J O O
J J J
Z Z
Z Z
Links
- Documentation
- PyPI
- Support: create an issue or see author contact
Install
This package is available on PyPI, you can install it with pip:
pip install tetris
# or `py -m pip ...` etc.
To install the git version:
pip install git+https://github.com/g3ner1c/python-tetris
Metadata
Release files for tetris 1.0.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tetris-1.0.0a0.tar.gz | 31.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tetris-1.0.0a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.3 kB
Release files / tetris-1.0.0a0.tar.gz
| Download URL | tetris-1.0.0a0.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
719992c8be8c90b7eaded5a9b54298d678d341d288cb7fb06079706dce0b4248
|
|
BLAKE2b-256 checksum How to use checksums |
0add5b3a4db0214080e1f41151dc7ce1c4b82400c3dda72e08948dc574dd3afd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1040-azure
|
Release files / tetris-1.0.0a0-py3-none-any.whl
| Download URL | tetris-1.0.0a0-py3-none-any.whl |
|---|---|
| Size | 36.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0f15a2dafee57160f91e6b86f368e1b74ec32198516daea8c7c9238db5c88f9
|
|
BLAKE2b-256 checksum How to use checksums |
43e83ce8b6ed4da7698e248d75d76db7861986b5d3f98b7f387ce359936938b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1040-azure
|