This is a simple Pong game implemented in Python using the Turtle graphics library. The game allows two players to control paddles on opposite sides of the screen and compete against each other to score points by hitting the ball past the opponent's paddle.
- Python 3.x
- Turtle library (usually included with Python installation)
-
Clone or download this repository to your local machine.
-
Navigate to the project directory in your terminal or command prompt.
-
Run the following command to start the game:
python pong.py
-
Use the
Up
andDown
arrow keys to control the right paddle. -
Use the
W
andS
keys to control the left paddle. -
The game will continue until one player scores 10 points and is declared the winner.
-
Player 1 (left paddle):
- Move Up:
W
key - Move Down:
S
key
- Move Up:
-
Player 2 (right paddle):
- Move Up:
Up
arrow key - Move Down:
Down
arrow key
- Move Up:
- The ball will start moving towards a random direction at the beginning of each round.
- Each time the ball hits a paddle, its speed will increase slightly.
- If the ball goes past a paddle and reaches the left or right edge of the screen, the opposing player scores a point.
- The game will continue until one player reaches 10 points, at which point the winner will be declared.
This Pong game is based on the classic arcade game originally created by Atari in 1972. The Turtle graphics library in Python provides a simple and beginner-friendly way to create games and animations.
This project is licensed under the MIT License.
Feel free to customize and expand upon this template to provide more information about your Pong game, such as installation instructions, gameplay instructions, screenshots, or any additional features you implemented.