TL;DR
This paper introduces the "General Video Game Rule Generation" (GVG-RG) problem and a new framework to tackle it. The goal is to generate game rules given a game level, essentially reversing the common level generation task. The authors propose a benchmark and three distinct rule generators, highlighting the trade-offs between diversity and quality in generated game rules.
What Problem Does This Paper Address?
Procedural content generation (PCG) is a vibrant area in game AI, with significant progress in generating game levels, characters, and even entire worlds. However, generating the rules of a game has remained a less explored and more challenging problem. This paper addresses this gap by formalizing the "General Video Game Rule Generation" (GVG-RG) problem: given a pre-existing game level, the task is to generate the corresponding game rules. This is framed as the inverse of level generation, and by separating these problems, the authors aim to make the larger challenge of full game generation more manageable. They propose a benchmark framework and a competition track to foster research in this area.
Methods
The core of the paper is the introduction of the GVG-RG framework, built upon the existing General Video Game AI (GVGAI) software and utilizing the Video Game Description Language (VGDL). VGDL allows for the description of 2D arcade games, including sprites, interactions, and termination conditions. The GVG-RG framework provides an API that takes a game level as input and expects rule generators to output interaction and termination sets.
The authors implemented three distinct rule generators:
- Random Rule Generator: This is the simplest approach, generating random interactions and termination conditions. It aims to produce playable games without explicit design principles, relying on chance.
- Constructive Rule Generator: This generator leverages common game knowledge and heuristics. It analyzes the input level to identify sprite categories (e.g., walls, score sprites, NPCs) and then constructs rules based on typical interactions between these categories (e.g., a chaser NPC is likely to kill its target).
- Search-Based Rule Generator: This generator employs a Feasible-Infeasible 2 Population Genetic Algorithm (FI2Pop). It starts with a population of games generated by the random and constructive methods, then iteratively mutates and combines them. A key aspect is the "feasibility" check, which ensures generated rules don't cause engine errors, allow a "do-nothing" agent to survive for a short period, and minimize "bad frames" (rendering issues). Fitness is evaluated based on agent performance and rule diversity.
Datasets
The paper does not explicitly list or introduce new datasets for training rule generators. Instead, it uses existing game levels from the GVGAI framework for evaluation. Specifically, they tested their generators against levels from three games: Aliens (a Space Invaders port), Boulderdash, and Solarfox. These levels were chosen for their varying sprite sets and level designs.
Key Insights and Ideas
- Inverse Problem Framing: Treating rule generation as the inverse of level generation is a novel way to decompose the complex problem of full game generation.
- Trade-off between Diversity and Quality: The experiments reveal a clear trade-off: the random generator produces diverse rules but often with uneven quality, while the constructive generator creates more consistently playable but less diverse games.
- The "Bad Frames" Constraint's Impact: The search-based generator's tendency to produce games where sprites freeze (due to the "Bad Frames" constraint favoring simple "undoAll" interactions) significantly impacted user preference, often making it less favorable than the constructive generator.
- Importance of a Benchmark: The authors strongly advocate for a standardized benchmark and competition track to drive progress in this research area.
Key Results
- Constructive Generator: Produces playable and somewhat interesting games, but with limited diversity.
- Random Generator: Generates remarkably diverse rulesets, but with an uneven quality.
- Search-Based Generator: Achieves high diversity but can suffer from issues like frozen sprites due to feasibility constraints.
- User Study: A user study comparing generated games showed that both the constructive and search-based generators were generally preferred over the random generator. However, the constructive generator outperformed the search-based generator in two out of three tested games, likely due to the search-based generator's tendency to produce "frozen" games.
Limitations and Future Work
- Limited Expressive Range of Constructive Generator: While producing playable games, the constructive generator's rules are not as novel or diverse as desired.
- Uneven Quality of Search-Based Generator: The search-based generator, while diverse, can produce unplayable or uninteresting games due to the strict feasibility constraints.
- Future Work: The authors suggest several avenues for future research:
- Developing more sophisticated rule generators that produce better rulesets.
- Easing the restrictions on generators, such as allowing them to generate sprite sets and levels in addition to rules.
- Exploring sequential generation, where outputs from rule generators are fed into level generators, and vice versa.
- Encouraging broader participation through the proposed competition track.
Summary updated