A modern and visually appealing ping pong game implemented using HTML5, CSS, and JavaScript. This project offers an engaging experience with realistic physics, customizable gameplay options, and a sleek user interface.
⭐️ If you find this project useful, consider giving it a star to show your support. ⭐
- Human vs AI: Play against an AI opponent with dynamic behavior for a challenging experience.
- Player vs Player: Compete with another player using keyboard controls.
- Choose from three match types:
First of 1
,First of 3
, andFirst of 5
. - Realistic physics engine that adapts ball speed dynamically based on paddle interactions.
- Human vs AI:
- Human: Move the paddle using the mouse.
- Player vs Player:
- Player 1: Use
W
andS
keys to move up and down. - Player 2: Use
Arrow Up
andArrow Down
keys to move up and down.
- Player 1: Use
- Clone this repository:
git clone https://github.com/ramazancetinkaya/ping-pong-game.git
- Navigate to the project directory:
cd ping-pong-game
- Open
index.html
in your preferred browser.
- Launch the game by opening
index.html
. - Select a game mode (
Human vs AI
orPlayer vs Player
). - Choose a match type (
First of 1
,First of 3
,First of 5
). - Start playing and enjoy!
ping-pong-game/
├── index.html # Main HTML file
├── style.css # Game styles
├── script.js # Game logic and physics engine
└── README.md # Project documentation
Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.