Created
March 17, 2015 21:05
-
-
Save Tuzibun/333bb9acf4692c13063a to your computer and use it in GitHub Desktop.
Day 02 HW Gwen
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("What is your name?") | |
name = gets().chomp() | |
puts("Its is a pleasure to meet you #{name}. Have you ever met a droid protocol 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? (Answer I do or I don't)") | |
answer_2 = gets().chomp() | |
if answer_2 = "I do" || "i do" || "I DO" || "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.") | |
end | |
puts("Please tell me how you like to say 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)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment