Re:Model-Based Testing for Dungeons & Dragons
by Firfi on Tuesday April 07, 2026 @09:15AM
(#47674895)
Dungeons & Dragons rules are a spec spanning thousands of pages, not formalized, but thoroughly tested by the community. Moving them to a formal specification language (Quint) was an obvious next step. It worked and proved to also be a great LLM self-checker.
[ Parent
| on HN ]
Re:Model-Based Testing for Dungeons & Dragons
by anentropic on Friday April 10, 2026 @08:50AM
(#47717366)
Fantastic, I'd been daydreaming about doing similar for a while!
Do I understand correctly that the Quint code is not needed 'at runtime', that it's there for model-based testing of the XState implementation?
Re:Model-Based Testing for Dungeons & Dragons
by Firfi on Friday April 10, 2026 @11:49AM
(#47719943)
Right. Quint is not used in runtime and is not supposed to be. It's a strong testing layer.
But there's much more to it. My bigger idea is that I would generate whatever implementation from it, hopefully, with an agentic loop - the MBT test is a natural feedback harness to leave coding overnight. So dnd-rust at some point, maybe? If someone develops a game, they would be able to generate a core logic in rust for bevy, in c# for unity, in (whatever it's used there) for godot. That's in an ideal world.
Re:Model-Based Testing for Dungeons & Dragons
by anentropic on Saturday April 11, 2026 @07:12AM
(#47729556)
Yes that's exactly what I started thinking, this is great work - thank you!