Posted By
|
Message
|
Battenburg
Registered 24/04/2009
Points 13
|
26th August, 2009 at 21:41:57 -
Got round to messing around with my little exercise and made some progress. Then I got rather bored when the answer didn't come to me and experimented with my old solution. Good news is that I have learnt much and it is almost working in it's basic form. Bad news is has a bit of a hick-up I'm unable to point out due to my absent minded toying around. But at least I have multiple lines now
The program is supposed to draw lines between dots in order. It almost does it, it uses spread values so the most recent dot 0 should always be drawing a line to dot 1, the second newest dot. However it always ignores dot 1 and draws a line to dot 2. All older lines are correct and even this error corrects itself when a new dot 1 exists (but the new one will still share the same error). I gotta pay attention in future, 2 steps forwards and one step back.
Left Click on any square for it's ID. Spacebar to drop a dot and arrow keys for directions. Any questions do ask please.
So anyone mind checking through the code and see where the heck I went wrong, this is the last bit left can't seem to get it working.
http://cid-848cfc57f09eb424.skydrive.live.com/self.aspx/.Public/BattenburgsMess.mfa
any help greatly appreciated!
n/a
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
27th August, 2009 at 12:29:23 -
To be honest, I'm having trouble understanding how your code is supposed to work at the moment.
I'll read through it again sometime, when I'm in a more "analytical" mindframe, but I'm not goood at understanding other peoples' code anyway.
It does seem like you're making it more complicated than it needs to be, though.
This is how I'd do it: http://cid-b1e7ee094271bbda.skydrive.live.com/self.aspx/Public/BattenburgsMess2.mfa
n/a
|
|
|