I was trying to make a multiplayer Pong iOS app and ended up with this. It 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've failed, but without success.
closed as off topic by palacsint, vikingosegundo, Brian Reichle, Yuushi, Glenn Rogers Feb 4 '13 at 7:40
Questions on Code Review Stack Exchange are expected to relate to code review request within the scope defined by the community. 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 reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.
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.