Last active
August 29, 2015 14:17
-
-
Save mugshepherd/83642cffb2d7ba31195d 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-cybord relations. What is your name?") | |
user_name = gets.chomp | |
puts ("It is a pleasure to meet you, #{user_name}. Have you ever met a protocol droid before?") | |
puts ("Please answer with yes or no.") | |
met_droid = gets.chomp | |
puts ("#{met_droid}? 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?") | |
puts ("Please answer 'I do' or 'I don't") | |
knows_obiwan = gets.chomp | |
if knows_obiwan = 'I do' || 'i do' || 'I DO' || 'i Do' || 'Yes' || 'yes' || 'YES' #instructions didn't state to include "yes" | |
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, #{user_name}, but if you'll please excuse me, I have to help my friend find someone named Obi-Wan Kenobi.") | |
puts("How do you say farewell where you come from?") | |
farewell = gets.chomp | |
puts("#{farewell} to you too") | |
puts("Well R2, I suppose we'll just have to keep looking") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment