Flask serves a single HTML page containing embedded JavaScript. Once the page loads in the browser, all game logic runs client-side — movement, collision detection, scoring, and speed control are ...