Skip to content

Instantly share code, notes, and snippets.

@ddzager
Created March 17, 2015 21:41
Show Gist options
  • Save ddzager/9448740e7f386aa66778 to your computer and use it in GitHub Desktop.
Save ddzager/9448740e7f386aa66778 to your computer and use it in GitHub Desktop.
puts "hello, I am C-3P0, human-cyborg relations."
puts "whats your name?"
name = gets().chomp()
puts "its a pleasure to meet you #{name}. Have you ever met a protocol droid before?"
user_answer = gets().chomp()
puts "#{user_answer}? How interesting from someone around these parts!"
puts "Im terribly sorry for prying, but you dont by any chance go by the alis of OBI WAN KENOBI do you?"
user_alias = gets().chomp().downcase!
if user_alias == "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 "please enter you favorite farewell!"
fav_farewell = gets().chomp()
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