I finished Pet Quiz with something I found weird.
Here’s my code:
def petSay(event):
pet.say("Yes.")
pet.say("No.")
pet.say("3,000 years old.")
pet.say("Yes, it's okay.")
pet.say("Only if I'm made High Executor.")
pet.on("hear", petSay)
hero.say("Do you understand me?")
hero.say("Are you a cougar?")
hero.say("How old are you?")
hero.say("Have you understood our culture?")
hero.say("Will you join our army?")
I was able to successfully finish this level by this weird, strange quirk. My code is perfect. It worked for each and every topic issued by my hero, Anya, to the cougar.
However, the cougar would respond with only the first and second answers: yes and no. As the questions started popping up from Anya, the cougar only responds with just the first two answers. It could not answer the age-related question, the culture, and the recruitment into the army.
I’m wondering what I did wrong, lol.