lynncook 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

magic_number by lynncook

number = ask "What's the magic number?"
alert "You think that " + number + " is the magic number!?"
if number == "3"
  alert "3! That's the magic number, yes it is, it's the magic number."
else
  alert "I'm sorry, your number is not magic, try again."
  number = ask "Now think carefully, the magic number is?"
    if number == "3"
      alert "Yes! Three is indeed the magic number."
    else
      alert "Oops! So sorry, " + number + " is not the magic number. You have one more try."
      number = ask "Think again. Take your time. Now, 1, 2, ...?"
      if number == "3"
        alert "Whoo hoo! Third time lucky! Super lucky. Three is the magic number!"
      else
        alert "I am very sorry, " + number + " is not the magic number."
        alert "Three times one, what is it? It's the magic number." 
      end
    end
end