Site hosted by Angelfire.com: Build your free website today!

This is a simple guess my number example.
Copy and paste it.
Tare it apart and change it around.

Back Home

`guess my number
`by john chase
`(CloseToPerfect)


Randomize timer()
Main:
cls
Secret_number = Rnd(100)+1
Print "I know a secret number can you guess it?"
do
Print "Guess between 1 and 100 :";
Input my_guess
If my_guess < secret_number then print "Nope, to low" else
If my_guess > secret_number then print "Nope, to high" else
If my_guess = secret_number
   print "Wow, you guessed my secret number"
   exit
   endif
Loop
Print "Would you like to try again (y/n)"
Wait key
If scancode()=21 then goto main else exit prompt "Thank you for playing", ""
End