solidstar and many others are using Hackety Hack to learn how to code.

Hackety Hack is a free program for Windows, Mac OS X and Linux that can teach you how to make games, applications and more and share those programs with your friends. You can ask other budding programmers questions and follow them to see what code they're working on through the Hackety Hack website.

Sign up Learn More

number_guess by solidstar

number = rand(10000)
guess = ask "There is a number between 0 and 10000. What is it?"
guess = guess.to_f
while guess != number
  if guess > number
    guess = ask "That is too high. Try agian."
    guess = guess.to_f
  end
  if guess < number
    guess = ask "That is too low. Try again."
    guess = guess.to_f
  end
end
alert "Congratulations! The number was " + number.to_s + "."