Building Pong on Canvas: Angle-Reflection Bounce Physics and an AI Paddle That's Meant to Lose Sometimes
Pong is the game everyone thinks they can write in an afternoon, and mostly they can — a ball, two rectangles, vx *= -1 when they touch. What comes …