Programmatic Strategies for Real-Time Strategy Games
Julian R. H. Mariño, Rubens O. Moraes, Tassiana C. Oliveira, Cláudio Toledo, Levi H. S. Lelis
Abstract
Search-based systems have shown to be effective for planning in zero-sum games. However, search-based approaches have important disadvantages. First, the decisions of search algorithms are mostly non-interpretable, which is problematic in domains where predictability and trust are desired such as commercial games. Second, the computational complexity of search-based algorithms might limit their applicability, especially in contexts where resources are shared among other tasks such as graphic rendering. In this work we introduce a system for synthesizing programmatic strategies for a real-time strategy (RTS) game. In contrast with search algorithms, programmatic strategies are more amenable to explanations and tend to be efficient, once the program is synthesized. Our system uses a novel algorithm for simplifying domain-specific languages (DSLs) and a local search algorithm that synthesizes programs with self play. We performed a user study where we enlisted four professional programmers to develop programmatic strategies for mRTS, a minimalist RTS game. Our results show that the programs synthesized by our approach can outperform search algorithms and be competitive with programs written by the programmers.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 0627a5b4-a102-4f66-adca-e8a80686fa9bCited by top-tier papers3
- What Can We Learn Even from the Weakest? Learning Sketches for Programmatic StrategiesLeandro C. Medeiros, David S. Aleixo, Levi H. S. LelisAAAI 2022 · 16 citations
- Show Me the Way! Bilevel Search for Synthesizing Programmatic StrategiesDavid S. Aleixo, Levi H. S. LelisAAAI 2023 · 12 citations
- Synthesizing Programmatic Reinforcement Learning Policies with Large Language Model Guided SearchMax Liu, Chan-Hung Yu, Wei-Hsu Lee, Cheng-Wei Hung et al.ICLR 2025
Related papers
- Code World Models for General Game PlayingWolfgang Lehrach, Daniel Hennes, Miguel Lazaro-Gredilla, Xinghua Lou et al.ICLR 2026 · 27 citations
- Optimal Program Synthesis via Abstract InterpretationStephen Mell, Steve Zdancewic, Osbert BastaniPOPL 2024 · 6 citations
- Reclaiming the Source of Programmatic Policies: Programmatic versus Latent SpacesTales Henrique Carvalho, Kenneth Tjhia, Levi LelisICLR 2024 · 8 citations
- Strategist: Self-improvement of LLM Decision Making via Bi-Level Tree SearchJonathan Light, Min Cai, Weiqin Chen, Guanzhi Wang et al.ICLR 2025
- Localized Attractor Computations for Infinite-State GamesAnne-Kathrin Schmuck, Philippe Heim, Rayna Dimitrova, Satya Prakash NayakCAV 2024 · 9 citations
