-
-
Save 0x0dea/362a64f9c22c701759a2 to your computer and use it in GitHub Desktop.
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
byes = 0 | |
puts 'What was that, honey?' | |
until byes == 3 | |
if (last = gets.chomp).upcase! | |
puts 'HUH!? SPEAK UP, SONNY!' | |
byes += last == 'BYE' ? 1 : -byes | |
else | |
puts "NO, NOT SINCE 19#{rand 20..50}!" | |
byes = 0 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment