Skip to content

Instantly share code, notes, and snippets.

@slrfg
Created March 17, 2015 22:48
Show Gist options
  • Save slrfg/5d73655e6fa1d93258c6 to your computer and use it in GitHub Desktop.
Save slrfg/5d73655e6fa1d93258c6 to your computer and use it in GitHub Desktop.
puts "C-3P0, Human-Cyborg Relations"
puts "What is your name?"
name = gets.chomp
puts "It's a pleasure to meet you #{name}. Have you ever met a protocol droid before?"
user_answer = gets.chomp
puts " #{user_answer}? How Interesting, for someone from around these parts."
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_answer2 = gets.chomp
user_answer2.upcase!
if user_answer2 == "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 Kenobi. We must be on our way. What do your people say when leaving each other?"
fav_farewell = gets.chomp
puts "#{fav_farewell} to you too, #{name}."
puts "Well R2, I guess we'll have to keep looking."
puts "R2D2: Agreeable android noises"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment