Computer Science Canada snakes and ladders |
Author: | juju [ Tue Jan 17, 2006 6:03 pm ] | ||
Post subject: | snakes and ladders | ||
i'm trying to make a snakes and ladders game, just a basic one. but something just isn't right. i am unable to move the "game piece" (a ball) to another square and it isn't even appearing. any idea's to get my game working? coding:
|
Author: | Delos [ Tue Jan 17, 2006 7:01 pm ] | ||||||
Post subject: | |||||||
Hi and welcome. Now let's get a few things clear. Thumbs up for using [ code] tags. You are saving retinas everywhere by doing so. Thumbs down for posting non-executing code. It won't run when I try to, only if I edit it. And I don't have the time to do that...and when I say "I", I'm not necassarily referring to myself. That being said:
What on Earth is that supposed to do? Set a random number 100 000 times?! There is no point in that.
I'm particularly interested in the 'or if' part. That is not how the sytax works. Instead it should be:
See that? Try fix those and see if it works any better. |