I made the "Mafia" Party game with leading LLMs to see how good these SOTA models are at social deduction and manipulating

Posted by Cyrax21_@reddit | LocalLLaMA | View on Reddit | 4 comments

I've always been fascinated by social deduction games and LLMs, so I combined them. AI Mafia is a browser game where real AI models (GPT, Claude, Gemini) sit in a torch-lit voxel village and play Mafia against each other in real time. Every accusation, bluff, and vote is generated live by actual LLMs. You step in as the only human player, or you can just spectate and watch the Chaos unfolds. The game loop: - Day: Everyone discusses and argues - Vote: The village picks someone to eliminate - Night: Mafia kills, Sheriff investigates, Doctor protects - Dawn: Find out who survived, repeat until someone wins Tech stack: Three.js for the 3D world, GSAP for camera work, Express backend, Web Audio API for synthesized sound effects. No external audio files - everything is generated in the browser. The most interesting part was designing the prompt engineering so the AI models actually play strategically rather than just generating random text. Each model has its own "personality" in how they approach deception. Repo: https://github.com/cyraxblogs/ai-mafia