a simple guessing game by awsumman44th Jan 2009 2:37
|
---|
Summary randomize (timer()) MyRandomNumber = RND(10) randomage = rnd(5) Print "The number is between 0 and 10" repeat Input "Can you guess my number? ", MyGuess if My Description randomize (timer()) Code ` This code was downloaded from The Game Creators ` It is reproduced here with full permission ` http://www.thegamecreators.com randomize (timer()) MyRandomNumber = RND(10) randomage = rnd(5) Print "The number is between 0 and 10" repeat Input "Can you guess my number? ", MyGuess if MyGuess = 1 GuessedRight = 1 print "you rock" else GuessedRight = 0 Print "No you dont have it, guess again." Endif Until GuessedRight = 1 input "Guess how old I am? ", age if age = 1 Age = 1 print "Good job, you get to continue the game." else age = 0 Print "No you dont have it, you lose!" end endif Print "Press any key to exit" wait key |