Created
March 17, 2015 21:41
-
-
Save ddzager/9448740e7f386aa66778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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