No matter whether you play against the computer(difficult to beat) or the random opponent(it's all determined by chance here), the instructions are the same. Use the arrow keys to move yourself and try to keep the ball from touching the edge on your side or the opponent will score a point. You are the red rectangle, but you can change color by pressing the left and right arrows. Also, there is a challenge added in...but you'll have to play to find out what it is.
All artwork and code by me. I first started this project in a class led by @rayli1123 but added a lot since then. I also got my enthusiasm and knowledge to code from that class, so thanks so much, @rayli1123! Please tell me about any bugs you find in the code. Check out my other projects! :D