Playing “Who's the Spy” locally with an LLM

It's Chinese New Year, and everyone is talking about DeepSeek. Ruirui wants to play "Who's the Spy" but can never round up enough people, so I built an AI-powered "Who's the Spy" game bot that calls an LLM to generate character descriptions and voting strategies — but I ran into problems like unstable model output and formatting errors. After tweaking the model and the prompts over and over, I finally got the basic functionality working, and the whole process was full of funny mistakes and challenges.

AI
n/tags/Harry-Potter/" style="font-size: 12px;" class="tag -0">Harry Potter SGA Stargate Divine Land SimCity 4 sns Oak Pacific Interactive Kaixin001 Xiaonei Solar Sins of a Solar Empire spore SampleDataEvent wav audio processing Comics StarCraft 2 release Heart of the Swarm NASA Gulf of Aden RPG AppleTV raspberry pi Raspberry Pi Weibo Tencent Teldrassil cursor void Programming Musings Reincarnation Cause and effect 2008 Olympic Opening Ceremony Disaster Liu Cixin Domestic The Wandering Earth Weakness Desire Contentment Brings Happiness Temptation tiled