Skip to content

Instantly share code, notes, and snippets.

@ecloke
Forked from nextacademy-private/deaf_aunty.rb
Last active March 1, 2016 06:30
Show Gist options
  • Select an option

  • Save ecloke/aafcb1fcc4b3f1e6019e to your computer and use it in GitHub Desktop.

Select an option

Save ecloke/aafcb1fcc4b3f1e6019e to your computer and use it in GitHub Desktop.
puts 'Hi, Sandra, how can i help u?'
counter = 0
while counter < 3
response = gets.chomp
if response == ' '
counter += 1
elsif response == 'I LOVE YOU AUNTY, BUT I GTG'
puts 'u may leave'
break
elsif response != response.upcase
puts 'huh i cant hear u'
else
puts 'NO WE CANT DO THAT'
end
if counter == 2
puts 'you may go'
end
end
puts 'see you soon!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment