Right before the final project that I had to make in ICS3U (Grade 11 Computer Science), I had the task of writing a Tetris clone in Python3.X, using PyGame 1.9.X.
This game is heavily object oriented, which was the point of the assingment. I still don't feel like I totally understand OOP, but I'm sure with enough practice I'll get there.
I ended up getting a 100% on this assignment
This game runs off of a Python Library called PyGame, and the installation of PyGame is required.
To install PyGame on a unix based system (does not include Mac):
python3 -m pip install pygame --user
To install PyGame on a Windows system:
py -m pip install pygame --user
To install on a Mac or anywhere else, I suggest you Google it.
Right well this is easy.
Navigate to the folder where all the game information is stored in CMD or Terminal and enter the following command:
On Windows:
Tetris.py
Unix:
python Tetris.py
If you have both python2 and python3 installed, run
python3 Tetris.py
-
PyGame - The Python Library I used
-
JetBrain PyCharm CE - The IDE I used. Highly recommended as opposed to the regular shell.
-
Python 3 - Duh.