Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
puts "C-3P0, human-cyborg relations."
puts "What is your name?"
name = gets.chomp
puts "It is a pleasure to meet you, #{name}. Have you ever met a protocol droid before?"
met_a_droid = gets.chomp
puts "#{met_a_droid.capitalize}? 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? (Answer \"I do\" or \"I don't\")"
r_u_kenobi = gets.chomp.capitalize
if r_u_kenobi == "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."
puts "(Say goodbye to the droid)"
farewell = gets.chomp
puts "#{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
You can’t perform that action at this time.