/deaf_aunty.rb Secret
Last active
February 29, 2016 07:44
-
-
Save lenafong/e31fa7a9a91abfadfaa9 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 | |
| start = gets.chomp | |
| count=0 | |
| until start == "I love ya, aunty, but I've got to go!" do | |
| if start != start.upcase | |
| puts "HUH?!SPEAK UP, SANDRA!" | |
| else | |
| puts "WE CAN'T DO THAT!" | |
| end | |
| start=gets.chomp | |
| end | |
| until count==2 do | |
| start=gets.chomp | |
| if start=="" | |
| count+=1 | |
| else | |
| puts "Go away!" | |
| count=0 | |
| end | |
| end | |
| end | |
| deaf_aunty | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment