1 Player Pong with Arduino?

Hello,

I have the idea to make a 1 player pong game for arduino using a 8x8 led matrix, potentiometer and arduino leonardo.
I have all the hardware plans and setup and a little of the code however, I want to make so that the oppenent will randomly move their paddle without needing any control to do so. But as well allow the non computer player to move their paddle how ever they want.
What would the code look like to do this? Is there any websites or other poeple's code that has this?

Thanks,

Cheers,
Ethan