Skip to content

Instantly share code, notes, and snippets.

@KMG112
Created March 17, 2015 21:12
Show Gist options
  • Save KMG112/f6c354fab0f713631d06 to your computer and use it in GitHub Desktop.
Save KMG112/f6c354fab0f713631d06 to your computer and use it in GitHub Desktop.
puts "Hello, I am C-3PO, Human-cyborg relations. What is your name?"
name = gets.chomp.to_s
puts "It is a pleasure to meet you, " + name
puts name +"? How interesting, for someone from around these parts."
puts "I am terribly sorry for prying, but you dont by any chance go by the alias of
Obi-Wan Kenobi, do you?(answer I do or I dont )"
answer = gets.chomp.to_s
if answer == "I do" || "i do" || "I DO" || "i Do"
puts "Oh, marvelous! Somply 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 your favorit farewell"
fav_farewell = gets.chomp.to_s
puts fave_farewell + "to you too."
puts "Well R2, I suppose we'll just have to keep looking."
print "R2-D2: (Agreeable droid noises)"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment