Skip to content

Instantly share code, notes, and snippets.

@eliseworthy
Created March 31, 2011 17:18
Show Gist options
  • Save eliseworthy/896801 to your computer and use it in GitHub Desktop.
Save eliseworthy/896801 to your computer and use it in GitHub Desktop.
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
@codezilla-xx
Copy link

You are adorable!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment