Abstract
We present a new method of automatic critical mechanic discovery for video games using a combination of game description parsing and playtrace information. This method is applied to several games within the General Video Game Artificial Intelligence (GVG-AI) framework. In a user study, human-identified mechanics are compared against system-identified critical mechanics to verify alignment between humans and the system. The results of the study demonstrate that the new method is able to match humans with higher consistency than baseline. Our system is further validated by comparing MCTS agents augmented with critical mechanics and vanilla MCTS agents on 4 games from GVG-AI. Our new playtrace method shows a significant performance improvement over the baseline for all 4 tested games. The proposed method also shows either matched or improved performance over the old method, demonstrating that playtrace information is responsible for more complete critical mechanic discovery.
Introduction
Creating effective game tutorials is a labor-intensive process for developers. To automate this, a system must first understand what actually matters in a game—the "critical mechanics." Previous attempts, such as the AtDelfi system, relied on static analysis, parsing game code (Video Game Description Language or VGDL) to find the shortest logical path to a win state. However, code analysis alone often misses the nuance of gameplay, identifying paths that are mathematically possible but practically irrelevant or unintuitive for humans.
Methodology: Hybrid Discovery
The researchers propose a hybrid approach that combines game description parsing with playtrace information—logs of actions and events from successful playthroughs.
- Mechanic Graph Generation: The system parses game rules into an "atomic interaction graph." Nodes represent game objects, conditions (like collisions), and events (like gaining points).
- Playtrace Integration: The system analyzes winning playtraces and selects the one with the fewest unique mechanics to minimize "noise" (e.g., accidental movements).
- Modified Best-First Search: Using playtrace timestamps as a "cost," the system searches the mechanic graph to find the earliest sequence of mechanics leading to a win.
- Mechanic-Augmented MCTS: To validate the discovery, a Monte Carlo Tree Search (MCTS) agent was modified to receive rewards for triggering discovered critical mechanics, encouraging the agent to follow the "winning path."
Evaluation and Results
The study utilized the General Video Game Artificial Intelligence (GVG-AI) framework, focusing on four games: Solarfox, Zelda, Plants, and RealPortals. Evaluation data included playtraces and descriptions from 93 human participants.
Human Alignment
In complex games like RealPortals, the playtrace method achieved a 94.3% match rate with human-identified mechanics, compared to just 9.3% for the static baseline. In Plants, the improvement was similarly dramatic (81.8% vs. 11.9%). This suggests that playtraces are essential for capturing the "logic" of complex games that static analysis misses.
AI Performance
MCTS agents augmented with playtrace-discovered mechanics showed significant win-rate improvements in Zelda, Solarfox, and Plants. In RealPortals, while win rates remained low due to strategic complexity, augmented agents achieved higher scores by repeatedly utilizing discovered mechanics.
Discussion and Future Work
A key finding was the "Positive Mechanic Bias." Humans frequently identify "negative mechanics" (e.g., "don't touch the fire") as critical, whereas the current system focuses only on actions leading to a win. Future work aims to integrate negative mechanic discovery and use these critical paths to automatically generate natural language instructions and specialized tutorial levels.
Summary updated