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
argate/" style="font-size: 14.31px;" class="tag -2">Stargate Divine Land SimCity 4 sns Oak Pacific Interactive Kaixin001 Xiaonei Solar Sins of a Solar Empire spore Comics SampleDataEvent wav audio processing StarCraft 2 release Heart of the Swarm NASA Gulf of Aden RPG AppleTV raspberry pi Raspberry Pi Weibo Tencent Teldrassil cursor void Programming Musings Cause and effect Reincarnation 2008 Olympic Opening Ceremony