Skip to content

Rika999/Python_Pong_Player_VS_AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

PONG!

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.

Features

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.

Controls

  • W - Move Left Paddle Up
  • S - Move Left Paddle Down
  • Enter - Restart game and update best score

How to Run

  1. Download the source file.
  2. Open your terminal/command prompt and navigate to the project folder.
  3. Run the script: python pong.py

ENJOY THE GAME!

About

A classic Pong implementation in Python using the Turtle module. Features a randomized ball trajectory system and a basic AI opponent.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages