Pong game in the classic sense but with a twist. Two players on the left and right sides…
- User
Pong game in the classic sense but with a twist. Two players on the left and right sides each instead of one, offset slightly left and right so they don't overlap (run into each other) when moving vertically. In other words, four players mixed doubles. Two balls. Controls to start, pause, reset. Add a ball speed slider. Have the ball bounce off the paddles at a random angle and relative velocity to make the play interesting. Pay special attention to your randomness strategy, or the paddles will become locked in sync; you need an independent state for all four paddles. Keep score. Add a slider for the probability of successful return ranging from 0 to 100 percent. When set to 100 the players would never miss and the game score would remain unchanged. When set to 0, all four players miss miserably. You can modernize the visuals a bit but the "paddles" should still be rectangles like the classic game. No need to add user controls for the paddles, this is pure "demo" mode where the game plays forever.
- Assistant
Implemented the autonomous mixed-doubles Pong game in
src/App.tsxwith styling insrc/index.css.Features include:
- Four independently controlled AI paddles with separate random states
- Two simultaneous balls
- Randomized rebound angles and relative velocities
- Start, pause, and reset controls
- Adjustable ball speed from
0.5xto2.0x - Return probability from
0%to100% - Guaranteed scoreless play at
100% - Guaranteed misses at
0% - Live scoring and responsive canvas layout
- Modernized classic Pong visuals and interface animations
Verified successfully with
npm run build.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.