user = "The USER wrote:"
print "You're a computer. I know you're not really a computer, but today you'll have to work as a computer."
print "Your work is very simple; there's a newbie in MiniScript, and he's trying to program somethings."
print "So your work as a computer is to understand what the user want you to do and do it."
print "But remember that..."
print "1. You're case sensitive."
print "2. You can detect an error by typing ""Error""."
print user
output = input("print ""Hello!""")
if output == "Hello!" then
print "You did it. Now just go on and do what the user write."
else
print "Wrong!"
end if
print user
print "var = 1"
output = input("print var")
if output == "1" then
print "It's right!"
else
print "It's wrong."
end if
print user
print "num1 = 2"
print "num2 = 6"
output = input("print num1 * num2")
if output == 12 then
print "Totally right."
else
print "It's wrong."
end if
print user
print "var1 = 2"
print "var2 = 1"
print "print var1"
output = input("print ver2")
if output.upper == "ERROR" then
print "Right! You're getting good at being a computer."
else
print "Oh, it`s wrong... you should print ""Error"", because the user want you to print the ""ver2"" variable, wich does not exist."
end if
print user
print "var1 = ""I'm """
print "num = 13"
print "var2 = "" old."""
output = input("print var1 + num + var2")
if output == "I'm 13 old." then
print "Totally right!"
else
print "It's wrong... maybe you've forgot some letter?..."
end if
print user
print "inp = input(""What's your name?"")"
output = input("print ""Hello, "" + inp + ""!""")
if output == "What's your name?" then
print user
output = input("David")
if output == "Hello, David!" then
print "You did it! You're really a good computer."
else
print "Oh, it's wrong... But don't give up, start again!"
end if
else
print "Wrong... try again!"
end if