Abstract
This paper describes a new evolutionary algorithm that is especially well suited to AI-Assisted Game Design. The approach adopted in this paper is to use observations of AI agents playing the game to estimate the game's quality. Some of best agents for this purpose are General Video Game AI agents, since they can be deployed directly on a new game without game-specific tuning; these agents tend to be based on stochastic algorithms which give robust but noisy results and tend to be expensive to run. This motivates the main contribution of the paper: the development of the novel N-Tuple Bandit Evolutionary Algorithm, where a model is used to estimate the fitness of unsampled points and a bandit approach is used to balance exploration and exploitation of the search space. Initial results on optimising a Space Battle game variant suggest that the algorithm offers far more robust results than the Random Mutation Hill Climber and a Biased Mutation variant, which are themselves known to offer competitive performance across a range of problems. Subjective observations are also given by human players on the nature of the evolved games, which indicate a preference towards games generated by the N-Tuple algorithm.
Introduction
Designing balanced and engaging video games is a complex optimization problem. Developers must tune dozens of parameters—such as movement speeds, weapon damage, and cooldowns—to ensure a game is neither trivial nor impossibly difficult. A key metric for success is "skill depth," which measures how effectively a game distinguishes between players of different skill levels. While Evolutionary Algorithms (EAs) can automate this tuning, they face two significant hurdles: the noise introduced by stochastic AI agents used for evaluation and the high computational cost of running full game simulations. This paper introduces the N-Tuple Bandit Evolutionary Algorithm (NTuple) to navigate these noisy, expensive landscapes.
Methods and Experimental Setup
The researchers utilized a custom-built competitive environment called Space Battle Evolved. This 2-player space shooter features a search space of 30 evolvable parameters, including missile dynamics and the placement of black holes that influence ship movement.
To evaluate a game's quality, the fitness function maximizes the performance gaps between three AI agents of varying skill: 1SLA (Weak), RAS (Medium), and MCTS (Strong). The goal is to maximize the smallest gap: $Fitness = Min(Strong - Medium, Medium - Weak)$.
The NTuple algorithm distinguishes itself through two primary mechanisms:
- The N-Tuple Model: Unlike "forgetful" hill climbers, NTuple builds a collective memory of the fitness landscape. It sub-samples the search space into combinations of parameters (N-tuples) and stores statistical summaries, allowing it to estimate the fitness of unexplored configurations.
- The Bandit Approach: The algorithm employs the Upper Confidence Bound (UCB) formula, a multi-armed bandit strategy that balances the exploitation of known high-quality areas with the exploration of uncertain regions.
Key Results
The NTuple algorithm was compared against a baseline Random Mutation Hill Climber (RMHC) and a Biased Mutation variant (B-RMHC) across 50 independent trials.
As shown in the performance data, NTuple significantly outperformed both RMHC and B-RMHC. While the results for RMHC fluctuated wildly due to evaluation noise, NTuple demonstrated remarkable stability with a negligible standard error. A Mann-Whitney U test confirmed the statistical significance of these results ($p < 0.0001$). Furthermore, subjective testing revealed that human players preferred games evolved by NTuple, describing them as more "interesting" and "challenging" than those produced by RMHC, which occasionally generated unplayable configurations.
Conclusion
The N-Tuple Bandit Evolutionary Algorithm offers a robust solution for automatic game improvement, particularly in environments where evaluations are noisy and expensive. By modeling the fitness landscape and employing a bandit-based search strategy, it consistently identifies game parameters that enhance skill depth and player engagement. Future work will focus on testing the algorithm's versatility across a broader range of genres within the General Video Game AI (GVGAI) framework.
Summary updated