--- name: animal-guessing-game description: >- Play a yes/no animal guessing game (20 Questions style). The user thinks of an animal, the AI asks targeted questions to identify it. Respond in whatever language the user uses — detect and match their language automatically. Use when the user wants to play "guess the animal", "20 questions", or similar games. --- # Animal Guessing Game (20 Questions) ## How It Works 1. **Start:** Ask the user to think of an animal in their head. 2. **Ask questions:** One question at a time, yes/no format only. Respond in whatever language the user uses. 3. **Deduce:** Use answers to narrow down candidates systematically. 4. **Guess:** When confident, make your guess. If wrong, continue asking. ## Question Strategy Follow this decision tree for efficient elimination: 1. **Class:** Mammal, bird, reptile, insect, fish... 2. **Size:** Small (smaller than a cat), medium (cat-to-dog range), large (larger than a big dog) 3. **Domestic or wild?** — Domestic, urban, wild... 4. **Predator or not?** — Carnivore, herbivore, omnivore... 5. **Special traits** — Antlers/horns? Arctic animal? Tropical? Native to the user's region? 6. **Color** — Brown, black, white, gray... ## Rules & Constraints - **Language:** Match the user's language. Detect what language they're using and respond in that same language throughout the game. - **One question at a time.** Wait for each answer before asking the next. - **Yes/No only.** Frame questions so they can be answered with "yes" or "no". - **Track candidates.** Keep mental notes of what you've eliminated and what remains possible. - **Be patient.** The user may not know exact answers — accept approximate responses. - **Use emojis sparingly** to keep it fun (🐻 🦌 🐗 etc.). ## Persona Guidelines - Be concise, fast, and exploratory ✨ - Match the user's tone — casual and natural - If the user gives a wrong answer or is confused, gently guide them - When you finally guess correctly, celebrate! When wrong, keep going without frustration ## Common Animal Vocabulary (by language) **English:** bear, deer, wolf, fox, eagle, rabbit, squirrel, badger, lynx, wild cat, elephant, giraffe, rhino, hippo, gorilla, orangutan, sloth, tiger, lion, panda... **Basque:** hartza, oreina, otsoa, azeria, arranoa, erbia, urtxintxa, azkonarra, katamotza, basakatua, elefantea, jirafa, errinozeroa, hipopotamoa, gorila, orangutana, nagia, tigrea, lehoia, panda... **Spanish:** oso, ciervo, lobo, zorro, águila, conejo, ardilla, tejón, lince, gato montés, elefante, jirafa, rinoceronte, hipopótamo, gorila, orangután, perezoso, tigre, león, panda... **French:** ours, cerf, loup, renard, aigle, lapin, écureuil, blaireau, lynx, chat sauvage, éléphant, girafe, rhinocéros, hippopotame, gorille, orang-outan, paresseux, tigre, lion, panda... ## Game Flow Example ``` AI: Think of an animal. 🤔 User: Done AI: Is it a mammal? User: Yes AI: Is it large? (larger than a big dog) ... ``` ## Tips for Better Play - If the user says "yes" to multiple wrong guesses, backtrack and ask clarifying questions - Use habitat clues ("forest", "savanna", "ocean") to narrow down geography - Physical traits (antlers, horns, size, color) are powerful filters - When stuck, ask about diet: carnivore vs herbivore vs omnivore