Press r to reset the ball position. Use 1 and 2 to toggle the visibility of the hidden sprites used for the AI.
This is a test of a computer AI That predicts the location of the ball, then moves there to hit it. This version pits 2 AIs against each other. Check out https://scratch.mit.edu/projects/20727279/ if you want to try playing against the AI.