Computer Science Canada Turing pong help |
Author: | Metaxu [ Sun Dec 30, 2012 1:26 pm ] | ||
Post subject: | Turing pong help | ||
What is it you are trying to achieve? Ball to work on hitting the left side paddle and bouncing off. Works on the right side. Also need ball to bounce off of top and bottom. Works on the top but not on the bottom What is the problem you are having? Wont bounce Describe what you have tried to solve this problem Tried alot, but any help would be much appreciated. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) What i have so far
Please specify what version of Turing you are using The good one. |
Author: | Insectoid [ Sun Dec 30, 2012 1:56 pm ] | ||
Post subject: | RE:Turing pong help | ||
This is a problem. I have no idea what any of these variables are supposed to be. Your variable names should describe themselves. All I know is these represent the X and Y coordinates of...things. Without comments, I haven't got a clue. In fact, I didn't read past that line, for exactly this reason. Fix this first, and then maybe I'll give you a hand. |
Author: | Panphobia [ Sun Dec 30, 2012 10:18 pm ] |
Post subject: | RE:Turing pong help |
I think those variables are for the paddles |
Author: | Raknarg [ Mon Dec 31, 2012 12:04 am ] |
Post subject: | RE:Turing pong help |
He could probably figure it out, he's trying to teach a lesson in proper variable naming. Or he's lazy. Either way. For small projects like this naming your variables incoherent names is annoying, but still usable. However if you work in anything bigger this will not do. Get into the habit of naming your variables something more relevant and/or specific. |