Scenario Description
Implement a simple Pong game using HTML, CSS, and JavaScript for demonstration purposes. The game should feature:
- Left paddle controlled by the player (mouse and arrow keys up/down)
- Right paddle controlled by a basic computer AI
- Bouncing ball with collision detection for paddles and walls
- Scoreboard displaying player and computer scores
- Game loop for animation and interactions
Reasons for scenario
- Provides a clear, interactive example of browser-based game development
- Demonstrates collision detection, AI paddle logic, keyboard and mouse controls
- Useful as an educational scenario for teaching basic programming concepts
Other Comments
No external libraries required. Clear, well-commented code is preferred. Optionally, allow restarting the game without a page refresh and add CSS styling for a better appearance.