This console-based ping pong game was developed using C++. The game allows players to compete against a computer opponent. Players can control their striker using the ↑ and ↓ arrow keys to hit the ball. The computer opponent's position changes dynamically based on the ball's location. The game also features a pause option and displays the final score at the end.
- Use the ↑ and ↓ arrow keys to control the player's striker.
- The objective is to hit the ball and prevent it from passing your striker.
- The computer opponent will dynamically adjust its position to hit the ball.
- Pause the game by pressing the 'P' key.
- The game ends when the ball passes your striker or the computer opponent's striker.
- The final score is displayed at the end.
- C++ compiler
- Keyboard arrow keys (↑, ↓) for player control
- Terminal or command prompt to run the game
- Clone the repository:
git clone https://github.com/bhaveymunjal/Ping-Pong-Game.git
- Navigate to the project directory:
cd Ping-Pong-Game
- Compile the game:
g++ ping.cpp -o ping
- Run the game:
./ping
If you would like to contribute to this project, feel free to fork the repository and submit pull requests with your enhancements or bug fixes.
If you have any suggestions, feature requests, or bug reports, please open an issue on the project's GitHub page.