@ Dietrich:
Cool, but keep in mind to stay out of the way of "Goto"'s!
They are a bad type of coding. This is a (much, much) better way to do it:
Do
Set Cursor 0,0
Print "Guess the number!"
Input "> ", Guessed$
NumberToGuess = rnd(10)
If Val(Guessed$) = NumberToGuess
// Guessed right!
Cls
Print "You guessed it..."
Wait 1000
Print "RIGHT!"
Wait 3000
CLS
Else
// Guessed wrong.
Cls
Print "You guessed it..."
Wait 1000
Print "WRONG!"
Wait 3000
CLS
Endif
Loop
Or here in
1 line:
Do : Set Cursor 0,0 : Print "Guess the number!" : Input "> ", Guessed$ : NumberToGuess = rnd(10) : If Val(Guessed$) = NumberToGuess : Cls : Print "You guessed it..." : Wait 1000 : Print "RIGHT!" : Wait 3000 : CLS : Else : Cls : Print "You guessed it..." : Wait 1000 : Print "WRONG!" : Wait 3000 : CLS : Endif : Loop
You're the

'th to view this signature!