Ping Pong Game is a simple multiplayer game implemented in Java. You can play either against another player or against an AI with different difficulty levels.
- Two Player Mode: Play against another player.
- Single Player Mode: Play against AI with easy and hard difficulty levels.
- Score Limit: The game ends when a player reaches 10 points.
- Smooth Graphics: Smooth paddle and ball movement.
- User-Friendly Interface: Easy to navigate and play.
-
Start the Server:
- The server is automatically started when you select the two-player mode.
- Both clients will connect to the server and start the game.
-
Control the Paddles:
- Player 1: Use the
UPandDOWNarrow keys to move the paddle. - Player 2: Use the
WandSkeys to move the paddle.
- Player 1: Use the
-
Choose Difficulty:
- Easy AI: Select "1 Player vs Easy AI".
- Hard AI: Select "1 Player vs Hard AI".
-
Control the Paddle:
- Use the
UPandDOWNarrow keys to move the paddle.
- Use the
- The first player to reach 10 points wins the game.
- A prompt will appear asking if you want to play again. Select "Yes" to restart the game or "No" to exit.
- Player 1: Use the
UPandDOWNarrow keys to move the paddle. - Player 2: Use the
WandSkeys to move the paddle in two-player mode.
-
Clone the Repository:
git clone https://github.com/Antot-12/ping-pong.git cd pingponggame -
Compile the Java Files:
./gradlew build
-
Run the Game:
./gradlew run
- src/main/java/Antot_12: Contains the Java source files.
- images: Contains images used in the README.
- build.gradle: The Gradle build file.
- Antot_12 - Initial work - My GitHub


