Table of Contents
A simple and classical pong game made by turtle graphics module in Python 3 through an object-oriented programming approach.
Python version used: 3.10.7.
You can learn more about the snake game on its Wikipedia page: https://en.wikipedia.org/wiki/Pong.
You can learn more about turtle graphics module on its Python documentation page: https://docs.python.org/3/library/turtle.html.
Python 3.8 or above is required. You can download the latest version through https://www.python.org/downloads/. You can also intall or update Python 3 in your terminal; depending on your operating system, the command to do so might be different.
- Clone the repo in a directory that is not currently a git repo:
git clone https://github.com/KORINZ/pong_game.git
- Change the directory to the cloned repo:
cd pong_game
- Execute the main.py file:
python3 main.py
Use the arrow keys (up, down) and the "W" and "S" keys to control the 2 paddles' movement, respectively.
A ball will be created on the center and move toward the top right corner initially. The ball will bounce on the top wall, the bottom wall, and paddles. If a player misses the ball, 1 point score will be added to the opppent.