Skip to content

Instantly share code, notes, and snippets.

@janicemin
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janicemin/bb158e11027b3cb51dc4 to your computer and use it in GitHub Desktop.
Save janicemin/bb158e11027b3cb51dc4 to your computer and use it in GitHub Desktop.
WDI Day 2 HW - Janice
puts "C-3PO, human cyborg relations."
puts "What's your name?"
name = gets.chomp
print "It is a pleasure to meet you, #{name}. Have you ever met a protocol droid before?"
user_answer = gets.chomp.to_s
print "#{user_answer}. How interesting, for someone from around these parts."
print "I'm terribly sorry for prying, but you don't by any chance go by the alias of Obi-Wan Kenobi do you? Answer 'I do' or 'I don't"
siorno = gets.chomp
if siorno == ("I do" || "i do" || "I DO" || "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 #{name}, but if you'll please excuse me, I have to help my friend find someone named Obi-Wan.")
puts ("Say your favorite farewell")
fav_farewell = gets.chomp.to_s
puts ("#{fav_farewell} to you too")
puts ("Well R2, I suppose we'll just have to keep looking.")
puts ("R2-D2: (agreeable droid noises)")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment