A classic Pong game implemented in Python using the Turtle ๐ข module.
## Table of Contents
- [๐ Quick Start](#quick-start)
- [๐ฎ How to Play](#how-to-play)
- [๐งฐ Project Structure](#project-structure)
- [๐ธ Screenshots](#screenshots)
- [๐ค Contributing](#contributing)
- [๐ License](#license)
## ๐ Quick Start
1. **Clone the repository** to your local machine:
```bash
git clone https://github.com/TheRealSaiTama/Pong.py.git
-
Navigate to the project directory:
cd Pong.py
-
Run the game by executing
main.py
:python main.py
-
๐ฎ Play the game using the following controls:
- Use the
Up
andDown
arrow keys to control the right paddle. - Use the
W
andS
keys to control the left paddle.
- Use the
Welcome to the classic Pong game! Your goal is to outscore your opponent by bouncing the ball past their paddle.
๐ Game Rules:
- Each time the ball passes the opponent's paddle, you score a point.
- The first player to reach the winning score wins the game.
- The game keeps track of each player's score.
Now, get ready to enjoy an exciting game of Pong! ๐
The project consists of four Python files:
-
main.py
: This is the main file that initializes the game window, creates the paddles, ball, and scoreboard, and handles game logic. -
paddle.py
: Contains thePaddle
class, which defines the properties and behavior of the paddles. -
ball.py
: Contains theBall
class, which defines the properties and behavior of the ball. -
scoreboard.py
: Contains theScoreboard
class, which keeps track of and displays the score.
Contributions are welcome! If you'd like to improve this project, feel free to:
- Open an issue ๐
- Create a pull request ๐ ๏ธ
- Provide suggestions ๐ฃ๏ธ
This project is licensed under the GNU License. See the LICENSE file for details.
๐ Have fun playing Pong! ๐
```