ai-pong
Classic Pong reimagined with an AI opponent. Playable directly in the browser.
About
ai-pong is a browser reimagining of the classic Pong arcade game, with one key twist: the opponent is an AI that actually tries to beat you. Rather than a paddle that simply mirrors the ball's position, the AI reads the ball's trajectory and moves with intent — making it a genuinely satisfying challenge rather than an unbeatable wall or a pushover. The entire game is written in vanilla JavaScript using the HTML5 Canvas API, with no frameworks, no build tools, and no dependencies. That makes it fast to load, easy to understand at the source level, and a useful reference for anyone learning canvas-based game development. It's hosted on GitHub Pages and playable in seconds.
Highlights
- ✓ AI opponent that adapts to your play style
- ✓ Pure canvas + vanilla JS — no dependencies
- ✓ Hosted on GitHub Pages, playable instantly