This is an old revision of the document!
Scoring in pong is as simple as checking if the ball has left the screen; if it crosses the left side the right player gets a point, and vice versa.
For our purposes, we can check if the ball's x position has exceeded 640 or subceeded 0