Move the paddle up (↑) and down (↓) to bounce the ball back at your opponent. Click
1 and
2
to cycle between paddle control for the left and right paddles (respectively). Click
r to reset the game and
click
s to toggle speeds (due to browser constraints, things break at higher speeds).
Paddle control options include:
player-controlled,
naive computer (attempts to follow the ball),
predictive computer (attempts to predict where the ball will land), and a
solid wall (you know...
for practice).
This project was created using
p5.js and is hosted by
GitHub Pages. All code (aside from the p5 libraries) was written
from scratch, by me,
Alec Kulakowski.
The code is shared under a
GNU General Public License and is available on
my GitHub.