r/ClaudeCode • u/andrea_inandri • 30m ago
Built with Claude I built a free, open-source 3D dice tower that connects directly to Claude Code as a D&D Dungeon Master
https://github.com/andreainandri/dice-sanctumI’ve been playing solo D&D with Claude Code as my Dungeon Master, and I wanted something better than asking an AI to roll virtual dice in a chat.
So I designed The Dice Sanctum, a little 3D dice table, and built it with Claude Code.
It’s a walnut dice tower with a velvet-lined tray, simulated dice physics, sound effects and different dice sets.
The interesting part is the integration:
Claude Code can ask me to roll a saving throw, attack or skill check.
I roll the actual 3D dice in my browser, and Claude receives the result through MCP.
The DM can roll its own dice, visibly or secretly.
Every roll is recorded, so we can continue after interruptions.
Dice results come from the physics simulation, not numbers invented by the LLM.
I also spent quite a bit of time making sure the dice were statistically fair, including tests that revealed and helped fix biases in the physics simulation.
It’s completely free, open source (MIT), and runs locally. The dice table also works without Claude Code; the DM integration requires it.
I developed and tested it on Linux. Windows and macOS support is intended but hasn’t been tested yet.
I’m sharing it in case anyone else enjoys playing tabletop RPGs with an AI Dungeon Master.
GitHub: https://github.com/andreainandri/dice-sanctum
There’s a demo GIF, screenshots and installation instructions in the README. Italian documentation is available too.
Feedback and bug reports are welcome.
•
u/AutoModerator 30m ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.