Skip to content

Instantly share code, notes, and snippets.

@heavymetta
Last active September 2, 2015 02:59
Show Gist options
  • Save heavymetta/a02212ed350a16b3cc9a to your computer and use it in GitHub Desktop.
Save heavymetta/a02212ed350a16b3cc9a to your computer and use it in GitHub Desktop.
Shakil The Dog
def shakil_the_dog
puts "Your with shakil"
puts "Say something"
carryon = true
while carryon
userInput = gets.chomp.downcase
case userInput
when "woof"
puts "WOOF"*3
when "shakil stop" || "shakil stop!"
puts " "
when "meow"
puts "meow"*3
when /.*treat.*/
puts "be patient"
when "go away"
carryon = false
end
end
end
shakil_the_dog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment