Mapping Hearthstone Deck Spaces through MAP-Elites with Sliding Boundaries

Matthew C. Fontaine, Scott Lee, Lisa B. Soros, Fernando de Mesentier Silva, Julian Togelius, Amy K. Hoover · DOI

Abstract

In complex games like Hearthstone, the "meta" consists of a diverse ecosystem of strategies rather than a single optimal deck. Traditional optimization algorithms often fail to capture this variety, typically converging on a single global optimum. This paper introduces MAP-Elites with Sliding Boundaries (MESB), a Quality Diversity (QD) algorithm that automatically adapts its search grid to the actual distribution of discovered solutions. By applying MESB to Hearthstone, researchers demonstrate its ability to map a massive search space of approximately $1.42 \times 10^{35}$ possible decks, providing a powerful diagnostic tool for game designers to evaluate balance and identify dominant cards.

Introduction

The challenge of game balance in collectible card games (CCGs) lies in the vastness of the strategy space. Designers aim for a "healthy" meta where multiple archetypes—such as aggressive "aggro" or defensive "control" decks—are viable. Standard QD algorithms like MAP-Elites attempt to find a map of high-performing, diverse solutions but typically rely on a fixed, predefined grid. If the distribution of viable strategies is unknown, this leads to inefficient mapping with many empty or overcrowded cells. MESB addresses this by dynamically adjusting grid boundaries to focus resolution where high-performing solutions actually exist.

Methodology: MAP-Elites with Sliding Boundaries

The core innovation of this research is the Sliding Boundaries mechanism. Unlike standard versions that use a fixed grid, MESB maintains a history of discovered individuals and periodically recalculates grid boundaries based on the percentiles of the current population. This ensures the grid "slides" to where the data is, providing high resolution in high-density areas of the strategy space.

Visualization of sliding boundaries adapting to the underlying distribution of solutions to ensure high resolution in high-density areas.

To define diversity, the authors utilized two "mana curve" metrics as behavioral dimensions:

  1. Average Mana Cost: A proxy for how early or late a deck peaks.
  2. Mana Variance: A measure of whether a deck's costs are focused or spread out.

Fitness was determined using the sum of health differences over 200 simulated games in the SabberStone environment, providing a more granular signal than simple win rates. The algorithm also employed resolution expansion, starting with a $2 \times 2$ grid and scaling to $20 imes 20$ over time to first identify the general shape of the space before refining details.

Results and Key Insights

MESB successfully evolved decks that significantly outperformed built-in starter decks and filled the majority of the mana curve space. The resulting maps revealed significant differences between archetypes and classes.

MAP-Elites results showing the distribution of fitness across mana curve dimensions for various class archetypes, illustrating the non-uniformity of the viable deck space.

A key insight was that "Aggro" strategies are highly sensitive to mana curves, requiring low average mana to remain competitive. In contrast, "Control" strategies proved more robust, maintaining viability across a wider range of mana distributions. The paper proves that the space of "valid" decks is not a perfect square; MESB’s ability to warp its grid to fit the "blob" of valid mana curves was essential for accurately mapping the deck space.

QD as a Diagnostic Tool

The tool also proved effective for automated rebalancing. By identifying cards that appeared in nearly 100% of elite decks (such as Sunwalker or Earthen Ring Farseer), researchers could simulate nerfs. Re-running the evolution after these adjustments showed the meta successfully shifting to include previously ignored cards, demonstrating MESB's utility as a "heat map" for game balance. For example, nerfing four dominant cards reduced their presence in the elite population from nearly 100% down to as low as 25%, forcing the AI to discover new strategies.

Conclusion and Future Work

MAP-Elites with Sliding Boundaries provides a robust framework for exploring and balancing complex game spaces. While the results are currently limited by the intelligence of the simulation agent and the specific card pool used (Basic and Classic sets), the approach offers a path toward automated game design assistance. Future work may explore more complex behavioral metrics beyond mana curves, such as "deck greediness" or "interactivity," to capture deeper strategic nuances in modern CCGs.

Summary updated

BibTeX
@inproceedings{fontaine2019mapping,
  author = {Matthew C. Fontaine and Scott Lee and Lisa B. Soros and Fernando de Mesentier Silva and Julian Togelius and Amy K. Hoover},
  title = {{Mapping Hearthstone Deck Spaces through MAP-Elites with Sliding Boundaries}},
  booktitle = {GECCO},
  year = {2019},
  doi = {10.1145/3321707.3321794},
}
Figure