Tetris game made with the Pygame library in Python.
Download the Python 3 installer package from the official website and install it, if not installed previously.
Run the following in the terminal to install the Pygame library
pip3 install pygame
Another alternative would be to import the contents of the repository in a PyCharm project. The Pygame library can be installed in a virtual environment of PyCharm using the steps mentioned here.
Download the source code from the repository and run the file just as any other Python script (.py) file.
python3 Tetris.py
If the project is imported in PyCharm, then the file can be run directly by setting the appropriate configurations.
Note: The filepath
and fontpath
for the text files and fonts need to be updated according to the location of the project on the user's machine.
- Python
- Pygame, an open source Python library for making multimedia applications
- PyCharm, an integrated development environment for the Python language developed by JetBrains
- Rajat Dipta Biswas - Initial work
See also the list of contributors who participated in this project.