/deaf_aunty.rb Secret
Last active
March 28, 2016 04:30
-
-
Save lamsx2312/f93cddd57aed7a6a0bbc 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 "Hi Sandra! Say hi to deaf Aunty :)" | |
| sandra_input = gets.chomp | |
| while sandra_input != "I love you, aunty, but I've got to go." | |
| if sandra_input == sandra_input.upcase | |
| puts "NO, WE CAN'T DO THAT!" | |
| sandra_input = gets.chomp | |
| elsif sandra_input == sandra_input.downcase | |
| puts "HUH?! SPEAK UP, SANDRA" | |
| sandra_input = gets.chomp | |
| else | |
| puts "Bye, Sandra!" | |
| sandra_input = gets.chomp | |
| break | |
| end | |
| end | |
| end | |
| deaf_aunty | |
| deaf_aunty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment