Created
November 20, 2014 23:33
-
-
Save kalyco/bc672c0f14a24a52fd48 to your computer and use it in GitHub Desktop.
Deaf Grandma
This file contains 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
puts 'SONNY..? IS THAT YOU..?' | |
input1 = '' | |
bye_count = 0 | |
while bye_count < 3 | |
input1 = gets.chomp | |
if input1 == 'BYE' | |
bye_count += 1 | |
puts 'NO. NOT SINCE '+(rand(1920..1956)).to_s | |
elsif input1.upcase == input1 | |
puts puts 'NO. NOT SINCE '+(rand(1920..1956)).to_s | |
bye_count = 0 | |
else | |
puts "HUH?! SPEAK UP SONNY!" | |
bye_count = 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment