[Paper Review] The Design Of "Stratega": A General Strategy Games Framework
Stratega is a general-purpose framework for developing and testing AI agents in turn-based and real-time strategy games, using a YAML-based configuration system to define game components like units, actions, and rules. It enables flexible agent development through a shared API and forward model access, supporting statistical forward planning and future expansion into complex strategy game mechanics.
Stratega, a general strategy games framework, has been designed to foster research on computational intelligence for strategy games. In contrast to other strategy game frameworks, Stratega allows to create a wide variety of turn-based and real-time strategy games using a common API for agent development. While the current version supports the development of turn-based strategy games and agents, we will add support for real-time strategy games in future updates. Flexibility is achieved by utilising YAML-files to configure tiles, units, actions, and levels. Therefore, the user can design and run a variety of games to test developed agents without specifically adjusting it to the game being generated. The framework has been built with a focus of statistical forward planning (SFP) agents. For this purpose, agents can access and modify game-states and use the forward model to simulate the outcome of their actions. While SFP agents have shown great flexibility in general game-playing, their performance is limited in case of complex state and action-spaces. Finally, we hope that the development of this framework and its respective agents helps to better understand the complex decision-making process in strategy games. Stratega can be downloaded at: https://github.research.its.qmul.ac.uk/eecsgameai/Stratega
Motivation & Objective
- To address the lack of generalizable AI frameworks for strategy games that support diverse game configurations beyond single-game specialization.
- To enable researchers to develop and test AI agents across a wide range of strategy games using a common API and shared game logic.
- To support statistical forward planning (SFP) agents by providing access to game states and forward models for action simulation.
- To facilitate research in game and level generation, automatic balancing, and explainability of AI decision-making.
- To extend support to real-time strategy games and complex mechanics like resource management and technology trees in future versions.
Proposed method
- The framework uses a modular architecture with game-runner, rendering, agents, and configuration components, decoupling logic from visualization.
- Game states are represented as data containers without logic, managed by the game-runner, which handles turn progression and action execution.
- YAML configuration files define game elements such as tiles, units, actions, win conditions, and effects, enabling runtime game customization without recompilation.
- Agents access a copy of the forward model to simulate action outcomes, supporting statistical forward planning and external thinking during opponents' turns.
- The framework supports both turn-based and real-time game-runners, with the latter collecting and executing actions in batches after a delay.
- The architecture supports pluggable forward models and game abstractions, allowing algorithms to operate across different levels of game representation.
Experimental results
Research questions
- RQ1How can a general strategy game framework be designed to support diverse game configurations while maintaining a consistent API for agent development?
- RQ2To what extent can YAML-based configuration enable rapid prototyping and tuning of game mechanics without code changes?
- RQ3How does access to a forward model enhance the performance and flexibility of statistical forward planning agents in complex strategy games?
- RQ4What are the key architectural requirements for supporting both turn-based and real-time strategy games in a unified framework?
- RQ5How can the framework support future research in game generation, automatic balancing, and explainability of AI decisions?
Key findings
- The Stratega framework successfully enables the creation of a wide variety of turn-based strategy games using a single, reusable API and YAML-based configuration.
- The separation of configuration from code allows dynamic game setup and rapid iteration without recompilation, enhancing research agility.
- Agents can access and modify game states and use the forward model to simulate action outcomes, supporting advanced planning techniques like statistical forward planning.
- The framework supports external thinking, allowing agents to reason about game states and opponent actions even during non-their-turn phases.
- The architecture is extensible and designed to support future integration of real-time strategy mechanics, resource systems, and technology trees.
- The framework's decoupled rendering and game-runner components allow for both GUI and headless execution, supporting scalable agent evaluation and logging.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.