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

Nobody's A Critic: On The Evaluation Of Creative Code Generators - A Case Study In Video Game Design

Michael Cook, Simon Colton, Jeremy GowICCC 2013

Introduction

In the field of Computational Creativity (CC), systems typically generate human-readable art like music, poetry, or paintings. However, program code—the very foundation of software—is rarely treated as the creative output itself. This paper introduces Mechanic Miner, a system that treats computer code as a creative artifact by autonomously generating new video game mechanics through the reflection and manipulation of Java source code.

The authors identify two major hurdles in this domain. First, the Evaluation Gap: unlike a painting, laypeople cannot "see" code logic directly; they only interact with its execution. Second, the Utility Challenge: in game design, a new mechanic must be functional and change the game's state space to allow players to solve new types of challenges.

Methodology: Mechanic Miner

Mechanic Miner operates on three main levels to bridge the gap between raw code and playable experience:

  1. Code Reflection: Using Java’s Reflection API, the system inspects the game’s classes and fields at runtime to identify manipulatable variables (e.g., player.velocity.y).
  2. Toggleable Game Mechanics (TGMs): It generates "modifiers" that apply a function to a variable when a button is pressed and an inverse function when pressed again (e.g., doubling gravity and then halving it back).
  3. Simulation-Based Evaluation: To ensure utility, the system uses a Breadth-First Search (BFS) solver. It attempts to solve a level twice: once with basic controls and once with the new mechanic. If the level is only solvable with the new mechanic, it is deemed to have high utility.
  4. Level Co-generation: The system uses an evolutionary algorithm to design levels specifically tailored to the mechanics it just invented, ensuring the player must use the new creative output to succeed.

Evaluation Through Play

To evaluate these generated mechanics, the researchers released a commercial-grade platformer, A Puzzling Present (APP), on Google Play and desktop. This "Evaluation Through Play" approach collected data from 5,933 unique devices over 75,614 play sessions.

The player feedback interface used in 'A Puzzling Present' to collect subjective ratings for fun and difficulty.

The dataset includes over 32,000 level traces and thousands of subjective 1-4 scale ratings for "fun" and "difficulty" provided by players after completing levels. This interactive feedback loop proved more resilient to participant fatigue than traditional static surveys.

Key Insights and Results

The Difficulty-Fun Correlation

A primary finding was a highly significant positive correlation (Spearman’s $\rho = 0.56$) between how difficult a level was perceived to be and how much "fun" it provided. Players welcomed the challenge of learning machine-generated mechanics because it made the gameplay less trivial.

Scatter plot showing the positive correlation between mean difficulty and mean fun across different game worlds (Invert gravity, High jump, and Bounce).

Emergent Gameplay and Framing

The system occasionally discovered "exploits" or emergent gameplay. For instance, it found that a teleportation mechanic could be used to clip into walls, which the physics engine interpreted as being "on the ground," allowing for infinite vertical jumping.

However, the study also highlighted the need for "Framing." Because players do not see the underlying code, creative generators must produce textual descriptions to explain what was created and why, bridging the gap between raw logic and player experience.

Conclusion and Future Work

Mechanic Miner successfully demonstrated that simulation-driven utility metrics can filter out broken code, ensuring 100% of mechanics presented to players were functional. Future work aims to address the "Metaphor Problem"—the system's current inability to understand the thematic context of its code (e.g., knowing a "bounce" mechanic should be visually represented by a spring). Additionally, the authors plan to move beyond variable modification toward generating entirely new methods and control flow structures.

Summary updated

BibTeX
@inproceedings{cook2013nobody,
  author = {Michael Cook and Simon Colton and Jeremy Gow},
  title = {{Nobody's A Critic: On The Evaluation Of Creative Code Generators - A Case Study In Video Game Design}},
  booktitle = {ICCC},
  year = {2013},
}
Figure