Reset
Author |
Message |
Azzy
![](http://www.filehigh.com/serve/12028/127708.gif)
|
Posted: Sun Nov 02, 2003 1:31 pm Post subject: Reset |
|
|
is there a way to make the program reset and start over? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
l0tt0
|
Posted: Sun Nov 02, 2003 2:46 pm Post subject: (No 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 |
|
|
|
|
![](images/spacer.gif) |
thoughtful
![](http://www.chiefdelphi.com/pics/myfiles/1069591541avatar1.jpg)
|
Posted: 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
|
|
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Sun Nov 02, 2003 10:42 pm Post subject: (No subject) |
|
|
just make sure to reset all your variables though you should declear them outside of the repeat loop.
Though another way would be to use Fork + Sys.Exec But that's unpractical. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Mon Nov 03, 2003 1:43 pm Post subject: (No subject) |
|
|
tony wrote:
Though another way would be to use Fork + Sys.Exec ![Laughing Laughing](http://compsci.ca/v3/images/smiles/icon_lol.gif) But that's unpractical.
and wrong on some many levels
not to metion bad progaming ![Shocked Shocked](images/smiles/icon_eek.gif) |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Mon Nov 03, 2003 3:14 pm Post subject: (No subject) |
|
|
i know, that's what I said it's unpractical
pff Imagine using that instead of loops ![Twisted Evil Twisted Evil](images/smiles/icon_twisted.gif) |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Tue Nov 04, 2003 12:26 pm Post subject: (No subject) |
|
|
shuuuuuuuuu, dont give tom west ideas ![Razz Razz](http://compsci.ca/v3/images/smiles/icon_razz.gif) |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Tue Nov 04, 2003 12:32 pm Post subject: (No 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 thats just painfull to wach ![Razz Razz](images/smiles/icon_razz.gif) |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
|
|