Synthesizing Reactive Character Behaviors for Continuous Games via Programmatic Policy Search
Maxim Gumin, Hsueh-Ti Derek Liu, Victor Zordan, Daniel Ritchie
Abstract
We present a method for synthesizing reactive character behaviors for continuous games as compact, human-readable programs. Game AI practice still relies heavily on manually authored behavior trees, state machines, and scripts, while academic reinforcement learning typically produces opaque neural controllers that are expensive to train and difficult to edit. Our approach bridges this gap by searching directly over a domain-specific language for continuous-space game policies. The language is designed around reactive geometric decisions and includes higher-order constructs such as direction maximization. These constructs help discretize a continuous behavior space into enumerable program structures. To make program search practical, we introduce a large set of synthesis antipatterns that remove redundant program forms while preserving behavioral coverage. We further combine bottom-up symbolic enumeration with top-down guidance from a coding agent. Our resulting method, agentic sketching, has the agent propose high-level policy structure and call an enumerator to complete local program slots. We evaluate the method on a benchmark of 14 continuous games, ranging from classic control tasks to multi-agent football. We find that pure enumeration is often more efficient than using a coding agent alone, while the combined method substantially outperforms both. Our results suggest that programmatic policy search can be a practical authoring tool for game AI: designers specify reward functions, and the system discovers editable behaviors that are effective, portable, and often surprising.
Create a lesson
Metadata
- Comments
- To be presented at SIGGRAPH Asia 2026
Related papers
E2SIM: Long-Horizon Simulation of Everyday Human Behavior with Evolving States
Shared title terminologycs.AIZiwei Gong, Xiangyang Yin, Thai Quoc On et al.
Self-Improving Long-Horizon Reasoning by Learning Summaries from Local Continuations
Shared title terminologycs.AIHaoqun Cao, Tengyang Xie
Off-the-Shelf Autonomous Agents for Game Playtesting
Shared title terminologycs.AIAyush Maniar, Eryk Banatt
GameDojo: Benchmarking Real-Time Interactive Agents in Video Games
Shared title terminologycs.AIKuan Zhang, Zhihao Yang, Yukun Chen et al.
ActField: Learning Action Effects as Continuous-Time Latent Dynamics
Shared title terminologycs.AIYunpeng Qing, Yuheng Huang, Changxu Wei et al.
mini-psych-agent: Evaluating Human-Like Behavior in LLM Agents through Interactive Psychological Environments
Shared title terminologycs.AIYi-Fei Cao, Tianxin Huang, Hanbo Xie et al.