My plan is to make this a competition between two bots - a 'follower' and a 'predictor'. The follower just tries to match the y coordinate of the ball; the predictor tries to move to where it thinks the ball will be returned to. For now, these are both followers.
Original project was completely rewritten. Still to do - add spin (hitting while moving the paddles) or modify the bounce angle depending on where on the paddle it hits. This will add some unpredictability to the game and make it harder for the predictor A.I. PS 98% pen. 1% is a trick to leave the phosphor trails and the other 1% is a neat trick from @FrozenFIsh13 to simulate an old analog raster display... (although it has made it a little laggy :-( ) Currently trying the alternative CRT effect from Apollos by @fezzinate