Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.14 KB

Pong-Game

A simple implementation of the classic Pong game using Python's turtle graphics module. This game features a graphical representation of Pong with two paddles, a ball, and a scoreboard to keep track of the points.

Features

  • Two paddles controlled by the keyboard
  • A ball that bounces off the paddles and the screen edges
  • Scoring system to keep track of points
  • Real-time updates and smooth gameplay

Controls

  • Up Arrow: Move the right paddle up
  • Down Arrow: Move the right paddle down
  • W: Move the left paddle up
  • S: Move the left paddle down

Code Structure

  • main.py: The main script that initializes and runs the game.
  • paddle.py: Defines the Paddle class which handles paddle behavior.
  • ball.py: Defines the Ball class which handles ball movement and collisions.
  • scoreboard.py: Defines the Score class which handles score tracking and display.

Contributing

Contributions are welcome! If you have suggestions or improvements, please feel free to open an issue or submit a pull request.

Acknowledgements

  • Python's turtle graphics module for the simple graphical interface.
  • The classic Pong game for inspiring this project.