https://github.com/mostafahima/ping-pong-game
A Python Ping Pong game using Turtle, with two paddles, a bouncing ball, and a scoring system for two players.
https://github.com/mostafahima/ping-pong-game
game ping-pong python3 turtle
Last synced: 7 months ago
JSON representation
A Python Ping Pong game using Turtle, with two paddles, a bouncing ball, and a scoring system for two players.
- Host: GitHub
- URL: https://github.com/mostafahima/ping-pong-game
- Owner: MostafaHima
- Created: 2024-12-16T11:22:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T11:25:09.000Z (over 1 year ago)
- Last Synced: 2024-12-28T16:49:59.773Z (over 1 year ago)
- Topics: game, ping-pong, python3, turtle
- Language: Python
- Homepage:
- Size: 7.81 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 classic Ping Pong game implemented using Python and the Turtle graphics library. The game features two paddles controlled by the player and an interactive ball that bounces off the walls and paddles. The objective is to prevent the ball from passing your paddle while trying to score points against the opponent.
## Game Features
- **Two paddles**: The left and right paddles are controlled by different keys.
- **Bouncing ball**: The ball bounces off the walls and paddles.
- **Increasing speed**: The ball's speed increases each time it bounces off a paddle.
- **Score tracking**: The game tracks the score of each player.
## Controls
- **Left paddle**:
- Move up with `W` key
- Move down with `S` key
- **Right paddle**:
- Move up with `Up Arrow` key
- Move down with `Down Arrow` key
## Requirements
- Python 3.x
- `turtle` module (usually included by default in Python installations)
## How to Run
1. Clone or download this repository.
2. Make sure you have Python 3.x installed on your system.
3. Open a terminal/command prompt in the project directory.
4. Run the game by executing the following command:
```bash
python main.py