--Sorry everyone
--I accidentally posted anonymously a little while ago,
--so I'm reposting from this account now. Rest assured,
--I definitely didn't rip it off or anything.
local day = 0
while true do
local input = io.read()
if input then
input = input:lower()
else
print("write `nextday`")
break
end
if input == "nextday" then
day = day + 1
print("day " .. day)
else
print("write `nextday`")
break
end
if day == 2 then
print("last day")
end
if day == 3 then
print("game over")
break
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: