Code skill Creating the Paddles

Use object instances to code two paddles: one for the player and one that will be controlled by AI. The paddles will share the same move functions, but are located in different places on the board. They will be drawn as white rectangles on the left and right-hand sides of the board.

See the Pen GB2 M3 by Walker Books UK (@walkerbooks) on CodePen.