I built a game in Python where the AI is the Dungeon Master: it handles the rules and math so you can explore any world you imagine.

r/LocalLLaMA
Generative AI AI Tools

Project Showcase: AID&D (WIP) I’m building a Pygame-based engine that turns LLMs into functional Dungeon Masters. Unlike a standard chatbot, this handles the mechanics, math, and state management programmatically. Technical Highlights: Provider Agnostic: Built to work with any OpenAI-compatible API. I’m testing on GPT-4o, but it’s fully portable to local setups (Ollama, LM Studio, vLLM). JSON-Driven State: The AI returns structured JSON to update character stats, inventory, xp, and health bars in real-time. The code handles the d20 math and logic checks.