Computer Science Canada Find the Hurkle Help PLZ! :) |
Author: | Gadd [ Fri Mar 30, 2012 6:40 pm ] | ||
Post subject: | Find the Hurkle Help PLZ! :) | ||
hey guys :3 Hoping you could help me with a problem I'm having here. Basically I have a game and you need to find guess the x and y values.. so far I am making a nice grid for the user and I have the x numbers being 1 to 10 and the y values being 1 to 10 just the y values aren't aligned the way I want them to be ( left to right ) heres my code and it's commented I was wondering if you could help
I wanna make it look : 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10 <-- this is what I cannot figure out how to do without doing: put "":value, "1":values. "2" ... and so on @_@ THANKS IN ADVANCE!!! |
Author: | Dreadnought [ Fri Mar 30, 2012 6:54 pm ] | ||
Post subject: | Re: Find the Hurkle Help PLZ! :) | ||
To have the following output continue where the last one ended, you use '..' (two periods) Ex:
|
Author: | Gadd [ Fri Mar 30, 2012 7:00 pm ] |
Post subject: | RE:Find the Hurkle Help PLZ! :) |
I don't really understand what's going on in that, But you gave me a good idea about putting both for loops together like that, once I figure out how, I will play around thanks ![]() |
Author: | Raknarg [ Sat Mar 31, 2012 3:58 pm ] |
Post subject: | RE:Find the Hurkle Help PLZ! :) |
You dont understand cause you havent looked at it closely enough, Im sure you can figure it out. |
Author: | Dreadnought [ Sat Mar 31, 2012 4:07 pm ] |
Post subject: | Re: Find the Hurkle Help PLZ! :) |
If you want a better idea of what's going on, you can try adding a delay (maybe like 100 ms) after the 'put i*j:4..' statement. If the nested for loop is complicating things for you, you can remove the outer loop and just give 'i' a value. Hope this helps. |
Author: | Zren [ Sat Mar 31, 2012 4:42 pm ] |
Post subject: | Re: Find the Hurkle Help PLZ! :) |
Documentation: put Quote: put [ : fileNumber , ] putItem { , putItem } [ .. ]
The put statement outputs each of the putItems. Usually, a new line is started in the output after the final putItem. If the optional dot-dot (..) is present, though, subsequent output will be continued on the current output line. With character graphics, the omission of dot-dot causes the remainder of the output line to be cleared to blanks. |