Evolving Game Skill-Depth using General Video Game AI Agents

Jialin Liu, Julian Togelius, Diego Perez Liebana, Simon M. Lucas

Introduction

Designing engaging video games requires more than just creative level design; it necessitates the fine-tuning of underlying mechanics—such as movement speeds, weapon cooldowns, and damage values—to ensure that player skill significantly influences game outcomes. This concept, known as "skill-depth," represents the performance gap between players of varying expertise. Traditionally, this tuning process relies on manual play-testing, which is often slow, expensive, and subject to human bias. This paper presents a novel approach to automatically evolving game parameters to maximize skill-depth using General Video Game AI (GVG-AI) agents as automated testers.

Methodology

The researchers propose a framework based on Relative Algorithm Performance Profiles (RAPP). The core metric for game quality is the performance differential between a sophisticated AI agent and a simple baseline heuristic. If a "smart" agent cannot consistently defeat a "dumb" agent, the game configuration is deemed to lack depth, likely due to broken mechanics or a high reliance on luck.

Experimental Setup

The study utilizes a two-player physics-based space-battle game inspired by Spacewar. Two types of agents are employed:

  1. Smart Agent: An Open-Loop Monte Carlo Tree Search (OLMCTS) agent capable of complex planning.
  2. Baseline Agent: A "Rotate-and-Shoot" (RAS) agent that follows a fixed, simplistic strategy.
A screenshot of the space-battle game environment showing complex missile patterns evolved through parameter optimization.

The optimization process explored a search space ranging from 14,400 to 72,000 possible combinations of parameters, including ship speed, thrust, missile speed, cooldown time, and missile cost. To navigate this space, the researchers compared two algorithms: Random Mutation Hill Climbing (RMHC) and Multi-Armed Bandit RMHC (MABRMHC). The latter treats each parameter as a "bandit," learning which variables most significantly impact the win rate to focus mutation efforts more efficiently.

Results and Analysis

The primary challenge in automated game tuning is the inherent stochasticity of game environments. A single evaluation is insufficient to determine a configuration's true fitness. The authors found that resampling—playing the same configuration multiple times—is essential for a stable evolutionary path.

Empirical winning rates across the parameter space for 11 trials (top) and 69 trials (bottom), illustrating the reduction in noise with increased resampling.

As shown in the comparison of empirical winning rates, increasing the number of trials from 11 to 69 significantly smooths the fitness landscape, allowing the optimization algorithms to more reliably identify high-depth configurations. Both RMHC and MABRMHC successfully evolved versions of the game where the OLMCTS agent achieved near-100% win rates. MABRMHC proved more efficient by quickly identifying influential parameters, such as "missile cost," which was found to be a critical factor in preventing the game from devolving into a chaotic "bullet hell."

Qualitatively, the evolved games exhibited interesting strategic depth. For instance, configurations with slow missile speeds forced the smart agent to employ strategic positioning and timing, leading to emergent behaviors like the spiral patterns observed in the game environment.

Conclusion and Future Work

This research demonstrates that skill-depth can be mathematically defined and automatically optimized using general AI agents. However, the process is limited by "agent blindness"—the tuning is only as effective as the agents' ability to discover strategies. Future work will focus on reducing the computational cost of resampling and testing the framework across a broader range of game genres within the GVG-AI library to validate its generalizability.

Summary updated

BibTeX
@inproceedings{liu2017evolving,
  author = {Jialin Liu and Julian Togelius and Diego Perez Liebana and Simon M. Lucas},
  title = {{Evolving Game Skill-Depth using General Video Game AI Agents}},
  booktitle = {CEC},
  year = {2017},
  url = {https://openreview.net/forum?id=ZEJDN6mKb9r},
}
Figure