ScriptDoctor: Automatic Generation of PuzzleScript Games via Large Language Models and Tree Search

There is much interest in using large pre-trained models in Automatic Game Design (AGD), whether via the generation of code, assets, or more abstract conceptualization of design ideas. But so far, this interest largely stems from the ad hoc use of such generative models under persistent human supervision. Much work remains to show how these tools can be integrated into longer-time-horizon AGD pipelines, in which systems interface with game engines to test generated content autonomously. To this end, we introduce ScriptDoctor, a Large Language Model (LLM)-driven system for automatically generating and testing games in PuzzleScript, an expressive but highly constrained description language for turn-based puzzle games over 2D gridworlds. ScriptDoctor generates and tests game design ideas in an iterative loop, where human-authored examples are used to ground the system's output, compilation errors from the PuzzleScript engine are used to elicit functional code, and search-based agents play-test generated games. ScriptDoctor serves as a concrete example of the potential of automated, openended LLM-based workflows in generating novel game content.

Authors

Institutions

Publication Details

Published
2025-08-19
DOI
https://doi.org/10.1109/cog64752.2025.11114269
Citations
1
Primary Topic
Artificial Intelligence in Games
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ScriptDoctor: Automatic Generation of PuzzleScript Games via Large Language Models and Tree Search

Graham Todd, Ahmed Khalifa, Muhammad Umair Nasir, Julian Togelius et al.
1 citations
Artificial Intelligence in Games
2.48
article

ScriptDoctor: Automatic Generation of PuzzleScript Games via Large Language Models and Tree Search

Graham Todd, Ahmed Khalifa, Muhammad Umair Nasir, Julian Togelius, Andrzej Banburski-Fahey, Sam Earle, Zehua Jiang
article en
1 citations

Abstract

There is much interest in using large pre-trained models in Automatic Game Design (AGD), whether via the generation of code, assets, or more abstract conceptualization of design ideas. But so far, this interest largely stems from the ad hoc use of such generative models under persistent human supervision. Much work remains to show how these tools can be integrated into longer-time-horizon AGD pipelines, in which systems interface with game engines to test generated content autonomously. To this end, we introduce ScriptDoctor, a Large Language Model (LLM)-driven system for automatically generating and testing games in PuzzleScript, an expressive but highly constrained description language for turn-based puzzle games over 2D gridworlds. ScriptDoctor generates and tests game design ideas in an iterative loop, where human-authored examples are used to ground the system's output, compilation errors from the PuzzleScript engine are used to elicit functional code, and search-based agents play-test generated games. ScriptDoctor serves as a concrete example of the potential of automated, openended LLM-based workflows in generating novel game content.

Microsoft (United States) (US), University of the Witwatersrand (ZA), University of Malta (MT), New York University (US)
Quality Education
Openalex Percentile: Top 9%
Artificial Intelligence in Games
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.