Phd Kitty
```lua -- Teach your pet to answer questions!
– Luckily, all the answers are "Two"
local sayTwo = function(event)
– Use pet:say() to answer “Two”
end
– Use pet.on() to handle “hear” events with sayTwo
– Now relax and watch the show.
hero:say(“One plus one is…?”)
hero:say(“x^3 - 6x^2 + 12x - 8 = 0. What is x…?”)
hero:say(“How many moons does Mars have…?”)
<hr>
Overview:
Teach Kitty how to perform special tricks to astound! Preprogram Kitty with the correct answer and impress the onlookers by asking rigged questions.
```lua
local sayApplesauce = function(event)
pet:say("Applesauce")
end
pet:on("hear", sayApplesauce)
hero:say("What is made up of apples?")
hero:say("What is mashed up into a sauce?")
hero:say("What is made better with a little cinnamon?")