Computer Science Canada goto start? |
Author: | Thuged_Out_G [ Tue Nov 18, 2003 7:49 pm ] |
Post subject: | goto start? |
how do i make it so when the program is finished running, it clears the screen and says You Win! or You Lose! in the center of the screen, and then under it say Click to continue. i guess my only problem is how to make the program restart when the screen is clicked, everything else i can do |
Author: | Tony [ Tue Nov 18, 2003 7:55 pm ] |
Post subject: | |
if you have problems with loops - read this tutorail if its only mouse clicking part, then read this tutorial all tutorial are local to compsci.ca ![]() |
Author: | Thuged_Out_G [ Tue Nov 18, 2003 8:44 pm ] | ||
Post subject: | |||
ok, i understand all that, but all ive made it do, is make it so you have to click to continue each turn :S lol ill paste the code and tell me what im doing wrong please.
|
Author: | AsianSensation [ Tue Nov 18, 2003 10:47 pm ] |
Post subject: | |
can you explain again? what do you want to do, output "It's now the computer's turn, computer takes 3 stones", click the mouse, wipe the screen, then have it output "It's now the player's turn, how many would you like to take?" get number, click mouse, wipe screen? is that what you want to do, then I suggest Mouse.ButtonWait, no need to go through that loop with a flag and whatnot. anyways, do please give credits where it is deserved when using other people's code |
Author: | Thuged_Out_G [ Tue Nov 18, 2003 11:33 pm ] |
Post subject: | |
sry, i never did get to thank you for the proggy ![]() but what i wanted it to do, is after the game is over and it says you lose player/computer i want it to clear the screen(i know how to do that) and then i want to give the user the option to restart the game, by clicking the mouse anywhere on the screen btw, awesome job on ths AI, ive never managed to win a game hehe |
Author: | thoughtful [ Wed Nov 19, 2003 12:14 am ] | ||
Post subject: | |||
Basically the easiest way is to put the program in an loop and use an if statement to see if the user wants to restart or not. This time i did it for you.
|