/deaf_aunty.rb Secret
Last active
March 29, 2016 01:42
-
-
Save vickean/ecbd2ec0bb185d10cf35 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 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