(link: "Guess")[(set: $guess to (prompt: "What's your guess?", "1"))
{(set: $numGuess to it + 1)
(set: $guess to (num: $guess))
(if: $guess < $number)[(Display: "Too low")]
(else-if: $guess > $number)[(Display: "Too high")]
(else:)[(goto: "Winner")]
}]Welcome to a number guessing game. I am thinking of a number between 1 and 100. You will be asked to guess it. I will tell you if your guess is higher or lower than the number I've chosen. You win by guessing my number!
(set: $number to (random:0,100))Yes, $guess is the correct number!
{(if: $numGuess is 1)[You got the number in 1 try! Great job!]
(else:)[It took you $numGuess tries to guess my number.]}$guess is too low.
(display: "Guess")$guess is too high.
(display: "Guess")