In the game Pong, the user moves a paddle along a single axis to prevent a bouncing ball from
going off the bottom edge of the screen. Whenever the ball hits the paddle or any other edge of
the screen, it bounces off and continues moving. However, if it goes off the edge of the screen
that is guarded by the paddle, it disappears and the player loses.
Start the ball anywhere you choose, moving in a random direction. Let the user move the paddle
with the arrow keys. Track and display the number of seconds the ball has been bouncing.
Whenever the user loses it off screen, record and display the streak length if it beats the current
record, and show the number of times the user has lost. Then reset the clock and ball and start
another round. If you wish, you may slowly increase the ball’s velocity over the course of a
round.