Computer Science Canada

Reset

Author:  Azzy [ Sun Nov 02, 2003 1:31 pm ]
Post subject:  Reset

is there a way to make the program reset and start over?

Author:  l0tt0 [ Sun Nov 02, 2003 2:46 pm ]
Post subject: 

for my blackjack game that i made i had a loop and then a loop inside it...and at the end of the game i ask if they want to play again and if they say no then it exits the loop and then i used Win.Close (win) to just close the window...dont know if that helped ya any

Author:  thoughtful [ Sun Nov 02, 2003 7:32 pm ]
Post subject:  loop

Well jus as he said, put a loop...this should look something like this

code:

var restart:string
loop
%your code
get restart
     if restart=n then
     exit
     end if
end loop

Author:  Tony [ Sun Nov 02, 2003 10:42 pm ]
Post subject: 

just make sure to reset all your variables Wink though you should declear them outside of the repeat loop.

Though another way would be to use Fork + Sys.Exec Laughing But that's unpractical.

Author:  Dan [ Mon Nov 03, 2003 1:43 pm ]
Post subject: 

tony wrote:

Though another way would be to use Fork + Sys.Exec Laughing But that's unpractical.


and wrong on some many levels Confused

not to metion bad progaming Shocked

Author:  Tony [ Mon Nov 03, 2003 3:14 pm ]
Post subject: 

i know, that's what I said it's unpractical Laughing

pff Rolling Eyes Imagine using that instead of loops Twisted Evil

Author:  Dan [ Tue Nov 04, 2003 12:26 pm ]
Post subject: 

shuuuuuuuuu, dont give tom west ideas Razz

Author:  Tony [ Tue Nov 04, 2003 12:28 pm ]
Post subject: 

I'm not... I think he's email is broken Confused He hasn't replied to my last two questions I asked (maybe he just doesn't care?).

heh, should have seen plasma's post on his site Laughing
Quote:

while I wait for Tommy to reply, I'm gonna write up a tutorial which I'll in fact just copy from help file and put my name on it

Author:  Dan [ Tue Nov 04, 2003 12:32 pm ]
Post subject: 

LOL, well lets not get into the war of the turing sites right now. dont need any more poleop saying they are going to take us down by making a crapy rip off and have a total of 19 members and like 2 posts Rolling Eyes thats just painfull to wach Razz


: