(set: $count to 0)
(set: $win to (random: 0,100))
(set: $guess to (prompt: "What number do you guess?", "0"))
(set: $guess to (num: $guess))
(if: $guess > $win)[(goto:"High")]
(if: $guess < $win)[(goto:"Low")]
(else:)[(goto:"Win")]{(set: $count to $count + 1)
You win! The number was $guess.}
{(if: $count is 1)[You're insane! It only took you $count guess!]
(else:)[It took you $count guesses!]}
Thanks for playing!
[[Play again->Game]](set: $count to $count + 1)
(set: $guess to (prompt: "Your guess was too high, guess again.","0"))
(set: $guess to (num: $guess))
(if: $guess > $win)[(goto:"High")]
(if: $guess < $win)[(goto:"Low")]
(else:)[(goto:"Win")](set: $count to $count + 1)
(set: $guess to (prompt: "Your guess was too low, guess again.","0"))
(set: $guess to (num: $guess))
(if: $guess > $win)[(goto:"High")]
(if: $guess < $win)[(goto:"Low")]
(else:)[(goto:"Win")]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!
[[Play->Game]]