A classic Pong game built in Python using the turtle graphics library. This project was created to practice basic game loop mechanics, collision physics, and simple AI implementation.
This version of Pong allows you to play against a Human vs AI system, where you face off against a computer opponent that actively tracks the ball's position. To keep the gameplay unpredictable, I implemented Dynamic Trajectories, meaning the ball serves in random vertical directions so every round feels different. The game also features Score Tracking, providing real-time scoring that keeps track of your current game and the best score achieved in the session. Finally, I focused on Anti-Glitch Collisions by fixing bounding box issues to prevent the ball from getting stuck inside paddles or walls, ensuring smooth movement throughout the match.
W- Move Left Paddle UpS- Move Left Paddle DownEnter- Restart game and update best score
- Download the source file.
- Open your terminal/command prompt and navigate to the project folder.
- Run the script:
python pong.py