Skip to content

Instantly share code, notes, and snippets.

@hchood
Last active December 29, 2015 03:29
Show Gist options
  • Save hchood/7608330 to your computer and use it in GitHub Desktop.
Save hchood/7608330 to your computer and use it in GitHub Desktop.
Alpha checkpoint: Echo (Phase 2)
# Alpha: Echo checkpoint (Phase 2)
def playback(input)
if input == "Nothing!"
"Ok, fine!"
elsif input == "I have a lot to say"
"I don't have time for that right now!"
else
"You said: #{input}"
end
end
puts "What do you want to say?"
input = gets.chomp
puts playback(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment