This is a random color generated pong game, with the both the paddles and the ball having a randomly generated color at the start of the game. I used arrays for both the ball and the paddles.
I understand that but the issue is I have to somehow export paddle and paddle 2 to the paddle class, with the only way I see being to pass it through its own constructor. Since paddle2 isn't created until after paddle, when the newly defined paddle wants to export it, it cannot. I know that I could probably pass it through the ball constructor instead, after I already define both paddle and paddle2, and have all of the code in the ball class but I think it would get pretty messy. Do you have any suggestions?