Skip to content

Instantly share code, notes, and snippets.

@vickean
Forked from nextacademy-private/deaf_aunty.rb
Last active March 29, 2016 01:42
Show Gist options
  • Select an option

  • Save vickean/ecbd2ec0bb185d10cf35 to your computer and use it in GitHub Desktop.

Select an option

Save vickean/ecbd2ec0bb185d10cf35 to your computer and use it in GitHub Desktop.
def deaf_aunty
puts "Say something to Aunty or type 'hug' to hug her:"
response = gets.chomp
while response != "I love ya, aunty, but I've got to go."
if response == response.upcase
puts "NO, WE CAN'T DO THAT!"
elsif response == "hug"
puts "Hugged aunty~"
else
puts "HUH?! SPEAK UP, SANDRA!"
end
puts "Say something to Aunty:"
response = gets.chomp
end
puts "\nSlowly moving away .."
moving = gets.chomp
moving2 = gets.chomp
puts "OK, see you!"
end
deaf_aunty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment