NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Argument for Large-Scale Breadth-First Search for Game Design and Content Generation via a Case Study of Fling!

Nathan R. Sturtevant

Abstract

While exhaustive search is often dismissed as computationally prohibitive for game design, this paper demonstrates its viability using the puzzle game Fling! as a case study. By leveraging modern hardware and techniques like retrograde analysis and endgame databases, designers can map state spaces containing trillions of entries. This approach enables real-time analysis of puzzle difficulty, uniqueness, and solvability, transforming brute-force search into a powerful interactive design assistant.

Introduction

In Procedural Content Generation (PCG), "search" typically implies selective algorithms like evolutionary strategies, based on the assumption that game state spaces are too large for exhaustive methods. However, this reliance on selective search creates a "black box" problem, making it difficult for designers to ensure puzzle uniqueness or precisely calibrate difficulty. Nathan Sturtevant argues that as computational power scales, exhaustive "brute-force" search becomes a viable tool for mapping these spaces, providing designers with comprehensive data to inform their creative process.

Methods

The study utilizes the mobile puzzle game Fling! to demonstrate the effectiveness of exhaustive search. The methodology combines several search techniques:

  1. Retrograde Analysis: A bottom-up approach that builds a database of solvable configurations by working backward from the goal state (one piece remaining).
  2. Breadth-First Search (BFS): Used to determine the forward reachability of a state, counting how many configurations are accessible from a starting position.
  3. Depth-First Search (DFS): Employed with duplicate detection to find specific solution paths and verify if a puzzle has a unique solution.
  4. Endgame Databases: Solvability for all boards with up to 10 pieces was pre-calculated, serving as a lookup table that provides a 5x speedup when analyzing larger, 14-piece problems.
The search tool identifies all valid moves and confirms solvability in real-time.

Key Insights and Results

The application of these methods revealed several critical insights into game design and complexity:

Difficulty and Reachability

Analysis of the 35 primary levels of Fling! showed a strong correlation between the number of states reachable via BFS and the perceived difficulty of a level. As shown in the graph below, the state space grows significantly with level progression, suggesting that reachability is a robust metric for puzzle complexity.

Correlation between the number of reachable BFS states and game level.

The Aesthetic of Uniqueness

By analyzing commercial levels, the study found that designers almost exclusively chose puzzles with a single, unique solution path. Brute-force tools allow designers to enforce this "logical" aesthetic by identifying and eliminating puzzles with multiple solutions.

Computational Feasibility

The research demonstrates that massive state spaces are manageable. For a 14-ball board, the state space consists of approximately 5.8 trillion arrangements. Using an 8-core machine, all 10-ball configurations were solved in just 129 minutes. The resulting interactive tool can update solvability and reachability metrics in roughly 50ms after a piece is moved, added, or removed.

Conclusion

Exhaustive search is a powerful, underutilized tool for designing discrete puzzle games. By mapping trillions of states, designers can move beyond "black box" generation to a more transparent, data-driven design process. Future work will focus on using these metrics—reachability, uniqueness, and switch-counts—to automatically identify the most engaging puzzles within vast state spaces.

Summary updated

BibTeX
@inproceedings{sturtevant2013argument,
  author = {Nathan R. Sturtevant},
  title = {{An Argument for Large-Scale Breadth-First Search for Game Design and Content Generation via a Case Study of Fling!}},
  booktitle = {AI in the Game Design Process @ AIIDE},
  year = {2013},
}
Figure