Guess which number I'm thinking of by Dietrich17th Aug 2009 13:59
|
---|
Summary This is a small code I wrote,the computer randomly generates a number between 1 and 7 and you have to guess what that number is! Description Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com set display mode 800,600,16 print "Guess what number I'm thinking of by NiK Dietrich" print "press any key" wait key startlabel: print "Take a guess and type in your number,it's between 1 and 7" var_number = rnd(6)+1 input var_guess if var_guess = var_number winlabel: print "Winner!That was AWESOME YOU READ MY FRICKIN MIND!" print "Press any key to try again,or escape to close" wait key goto startlabel else loselabel: print "Hard luck,have another shot" endif input var_guess if var_guess = var_number goto winlabel else goto loselabel endif |