Okay so I was trying to make a multiplayer Pong iOS app and ended up with this. Which is almost good except for one big bug. the 2nd player's paddle is moving the same way with yours. basically you're playing solo with a multiplayer score... I've struggled to see where I failed but without success. I know it's a lot to ask you guys to take a look over 270 lines of code but I can promise it's simple code , nothing complicated :) Thank you in advance !
closed as off topic by palacsint, vikingosegundo, Brian Reichle, Yuushi, Glenn Rogers Feb 4 at 7:40
Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
I believe you've got an error here:
...you almost certainly want the length to be
And a minor issue in this method:
Not sure if fixing the first issue will fix the problem of the paddles moving incorrectly, but it's something to start with, at least.