A number guessing game for KiXtart.

KiXtart is yet another scripting language I’m learning. It uses a simple, BASIC-like language to allow you to make your own scripts with ease. I’ve yet to see if it’s better than AutoIt, but so far it’s been a smooth ride. Here’s a number guessing game in which the script tells you if your guess is too high or too low.

dim $guess
SRND (2007)
$num = int(RND(100))

while $num $guess

? “Your guess? “
GETS $guess

if int($guess) > $num
? “Too high.”
if int($guess) < $num
? “Too low.”


? “You guessed it!”