Created
March 31, 2011 17:18
-
-
Save eliseworthy/896801 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def waryear | |
1914 + (rand(32)) | |
end | |
hard_hearing = "OH, THAT'S NICE. DID I EVER TELL YOU ABOUT THAT TIME IN THE WAR IN #{waryear}?" | |
cant_hear = "HUH? I CAN'T HEAR YOU!" | |
puts "COME SIT DOWN NEXT TO GRANDPA. HOW ARE YA?" | |
while true | |
response = gets.chomp | |
if response == "BYE" | |
puts "STAY AWHILE! DID I TELL YOU ABOUT HOW I LOST MY LEG IN #{waryear}?" | |
response = gets.chomp | |
if response == "BYE" | |
puts "STAY! I NEED TO SHOW YOU MY PHOTO COLLECTION FROM #{waryear}!" | |
response = gets.chomp | |
if response == "BYE" | |
break | |
elsif response == response.upcase | |
puts hard_hearing | |
else | |
puts cant_hear | |
end | |
elsif response == response.upcase | |
puts hard_hearing | |
else | |
puts cant_hear | |
end | |
elsif response == response.upcase | |
puts hard_hearing | |
else | |
puts cant_hear | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are adorable!