This project has been replaced by i-love-tetris.
A Tetris clone written entirely in python
.
Python Tetris requires python3 and pyglet to be installed in order to run.
Before starting Python Tetris, ensure that a configuration file exists at src/config.py
.
If it doesn't, you can copy the example configuration file at src/config.py.example
.
To start Python Tetris, run the python-tetris.py
script located in the src
directory.
src/python-tetris.py
Unit tests can be run using pytest.
To run all tests recursively, run pytest
at the project's root directory.
To run single test file, run pytest
followed by the path to the file. For example,
pytest src/tetromino/tetromino_test.py