changecase 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

secretnumber by changecase

secret_number = 42
alert "I have a secret number. take a 
guess, see if you can figure it out!"
guess = (ask "Guess my number:").to_i
if guess == secret_number
  alert "Yes! You guessed right!"
else
  alert "Sorry, you'll have to try again."
end