Skip to content

Instantly share code, notes, and snippets.

@chadxsmith
Created March 17, 2015 21:11
Show Gist options
  • Save chadxsmith/993a7861ae0557a3e1ae to your computer and use it in GitHub Desktop.
Save chadxsmith/993a7861ae0557a3e1ae to your computer and use it in GitHub Desktop.
puts ("I am C-3P0, human-cyborg relations.")
puts ("What is your name?")
user_name = gets.chomp
puts ("It is a pleasure to meet you, " + user_name + ".Have you ever met a protocol droid before?")
user_answer = gets.chomp
puts ("I'm terribly sorry for prying, but you don't by any chance go by the alias of Obi-Wan Kenobi, do you?")
user_answertoObi = gets.chomp
if user_answertoObi == "I do" || user_answertoObi == "i do" || user_answertoObi == "i Do"
puts ("Oh, marvelous! Simply marvelous! Say hello to R2-D2; he's been looking all over for you.")
else
puts ("I've really enjoyed speaking with you, " + user_name + ", but if you'll please excuse me, I have to help my friend find someone named Obi-Wan Kenobi.")
end
puts ("What is your favorite farwell?")
user_farewell = gets.chomp
puts ("Well, " + user_farewell + "to you too")
puts("R2-D2: (Agreeable droid noises)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment