Artificial intelligence (AI) models have been playing the popular tabletop role-playing game Dungeons & Dragons (D&D) so that researchers can test their ability to create long-term strategies and collaborate with both other AI systems and human players.

In a study presented at the NeurIPS 2025 conference, which ran from Dec. 2 to Dec. 7 in San Diego, researchers said D&D is an optimal test bed thanks to the game’s unique blend of creativity and rigid rules.

You may like

For the experiments, a single model could assume the role of the Dungeon Master (DM) — the individual who creates the story and plays the role of the monsters — as well as a hero (there was one DM and four heroes in each scenario). In the framework built for the study, called D&D Agents, models can also play with other LLMs, or human players can fill any or all of the roles themselves. For instance, an LLM could assume the role of the DM, while two LLMs and two human players played the heroes.

“Dungeons & Dragons is a natural testing ground to evaluate multistep planning, adhering to rules and team strategy,” the study’s senior author, Raj Ammanabrolu, an assistant professor in the University of California, San Diego Department of Computer Science and Engineering, said in a statement. “Because play unfolds through dialog, D&D also opens a direct avenue for human-AI interaction: agents can assist or coplay with other people.”

The simulation doesn’t replicate an entire D&D campaign; instead, it focuses on combat encounters, drawn from a pre-written adventure called “Lost Mine of Phandelver.” To create the parameters of a test, the team chose one of three combat scenarios from the adventure, a set of four characters, and the characters’ power levels (low, medium or high). Each episode lasted 10 turns, and then the results were collected.