https://github.com/harishrajt/pingponggame
A classic Pong game built with Python's turtle graphics library. Players control paddles to hit a ball back and forth, aiming to score points by getting the ball past the opponent's paddle. The game features score tracking, paddle movement, and ball bouncing mechanics.
https://github.com/harishrajt/pingponggame
turtle-graphics
Last synced: 4 months ago
JSON representation
A classic Pong game built with Python's turtle graphics library. Players control paddles to hit a ball back and forth, aiming to score points by getting the ball past the opponent's paddle. The game features score tracking, paddle movement, and ball bouncing mechanics.
- Host: GitHub
- URL: https://github.com/harishrajt/pingponggame
- Owner: harishrajT
- Created: 2024-10-12T11:06:51.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-10-15T15:57:28.000Z (9 months ago)
- Last Synced: 2025-01-07T21:16:45.129Z (6 months ago)
- Topics: turtle-graphics
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ping Pong Game
This is a simple recreation of the classic Pong game built using Python's Turtle graphics library. The game features two paddles and a ball, allowing two players to control the paddles and score points when the ball passes their opponent's paddle.
## Features
- **Two Player Controls:**
- The right paddle is controlled using the Up and Down arrow keys.
- The left paddle is controlled using the "W" and "S" keys.
- **Ball Movement:**
- The ball bounces off the paddles and the top and bottom walls.
- If the ball passes a paddle, the opposing player scores a point.- **Scoreboard:**
- Tracks and displays the scores of both players in real-time.
- The game resets the ball position after a point is scored, and the ball speeds up after each paddle hit.## Requirements
- Python 3.x
- Turtle graphics library (pre-installed with Python)## How to Run
1. **Clone the repository** or download the code files.
2. Run the `pingponggame.py` script using Python:
```bash
python pingponggame.py