Can AI-Generated Games Actually Be Played? Why Current Evaluation Falls Short
AI-generated game prototypes often run in a window but fail the moment real players touch them: spikes do not deal damage, victory screens trigger on their own, and enemies never register a hit. This article explains why "runnable" and "playable" are separated by a semantic gap, why screenshot-based model judging and rigid unit tests both miss the mark, and how a three-layer evaluation loop—specification, runner, and structured runtime evidence—can automatically align design intent with actual behavior. It also covers building a reference game set, four measurable playability metrics, common failure patterns with debugging tips, and a practical CI-oriented rollout process.
1. The Problem Is Not Whether It Runs, but Whether It Runs as Designed
Current AI coding tools can fairly reliably generate a game prototype that runs in a window: a character is placed in a scene, and movement, jumping, and camera follow are all present. Hand that prototype to real players, however, and the problems surface quickly. Spikes are drawn on the ground but deal no damage when stepped on. The victory screen pops up even though the player did nothing to trigger it. Enemies move around but are never registered as landing a hit.
These symptoms point to one key issue: there is a semantic gap between “runnable” and “playable.” Ordinary coding tasks are relatively easy to accept—given inputs, compare outputs, pass unit tests, done. Games are different. Their correctness is distributed across a closed loop: player input → state change → rule resolution → feedback. You cannot tell from a code snippet alone whether “touching a spike causes death.” You have to actually drive the character into the spike and observe whether health, animation, and respawn logic all fire in sync.
So the core question for evaluation should shift from “does the result look right” to “did the process actually happen.” That is the technical thread of this article: make design intent explicit, structure runtime evidence, and let the two be aligned automatically.
2. Why Existing Evaluation Methods Look the Wrong Way
Two approaches are common in the industry, and each has an obvious weakness.
The first is to have another large model “look at” the generated result and assign a score. This is like asking an art teacher to grade a sculpture remotely without ever seeing the object: only screenshots or recordings are available, operations cannot be reproduced, and judgment is inherently degraded. The model is easily misled by visual completeness, treating “has an interface” as “has logic.”
The second is to write rigid unit tests that assert whether a function returns the expected value. These cover pure logic well but cannot catch whether the logic stays self-consistent during dynamic interaction. Examples: “does the character enter invincibility frames after taking damage,” “is consecutive jumping incorrectly allowed,” “does the win condition require collecting all keys first.” None of these can be expressed as a single function’s return value.
Some research directions in the same period have their own emphases: some rely on browser interaction to evaluate web mini-games, others rely on in-engine state assertion testing. Each does work on one side—interaction or state—but generally none truly connects design intent with runtime evidence. The former answers “what should happen,” the latter answers “what actually happens,” and there is no bridge that can verify one against the other automatically.
3. Overall Approach: A Three-Layer Loop of Intent, Execution, and Evidence
A practical evaluation framework can be abstracted into three layers.
- Intent layer (Spec): use a structured document to fix the goal, control scheme, core mechanics, win/lose conditions, and level pacing. A machine-readable format is recommended so assertions can be generated automatically later.
game:genre: platformerwin_condition: collect_all_keys && reach_goallose_condition: hp <= 0mechanics:spike:on_touch: damage(1) + respawn_at_checkpointdouble_jump:max_air_jumps: 1levels:- introduce: spike- vary: spike_with_moving_platform- combine: spike + enemy + limited_time
Execution layer (Runner): load the game in a controlled environment, inject repeatable input sequences (scripted operations), and support acceleration, pausing, state snapshots, and replay. The key requirement is determinism: the same seed and the same input must produce the same trajectory, otherwise evaluation is not reproducible.
Evidence layer (Evidence): collect runtime signals, including character position, health, win/lose flags, timers, collision events, and scene object states. Evidence is not a screenshot; it is a timestamped structured event stream.
{"t":3.42,"event":"collision","a":"player","b":"spike","result":"damage","hp":0}{"t":3.43,"event":"state","scene":"respawn","checkpoint":"cp_2"}
The value of the three-layer loop: the intent layer generates assertion templates, the execution layer produces the evidence stream, and the evidence layer uses a rule engine to decide whether “what should happen did happen, and what should not happen did not.”
4. Reference Game Set: Where the “Ground Truth” Comes From
To make evaluation credible, you first need a batch of genuinely playable reference implementations as baselines. Recommended conventions when building them:
- Dimension coverage: include both 2D and 3D, spanning a dozen or more genres such as shooters, platformers, puzzle, strategy, and simulation/management, so evaluation is not good at only one category.
- Unified tech stack: implement everything on the same open-source engine to reduce environment-induced noise. The advantage of an open-source engine is that it is scriptable, can run headless, and makes input injection and state capture easy.
- Separate art from documentation: use off-the-shelf asset packs to establish the visual style and keep attention on mechanic correctness; also produce detailed design documents that fix the goal, controls, mechanics, and win/lose conditions.
- Paced levels: design along “introduce → vary → combine.” A mechanic first appears alone, then reappears under new conditions, and is finally mixed with other mechanics to test the player. This pacing naturally maps to a verifiable sequence of assertions.
Illustration: a three-stage verification intent for a “spike” mechanic
introduce: place spikes on flat ground, player moving right must contact them -> expect hp-1 and return to checkpointvary: spikes placed under a moving platform, player must wait for the right moment -> expect damage only on mistimed contactcombine: spikes + enemy + time limit, player must collect the key first -> expect reaching the goal without the key does not trigger victory
With a reference set, evaluation is no longer “scoring by feel” but “behavioral alignment against a known-playable implementation.”
5. Metric Design: Breaking “Playability” into Measurable Items
Four categories of metrics are recommended instead of a single score:
- Mechanic hit rate: how many mechanics listed in the design document have corresponding events in the evidence stream—for example, whether “damage → respawn” appears as a pair.
- Constraint violations: how many times something that should not happen happened. Typical violations include “victory without meeting conditions,” “unlimited air jumps,” and “walking through walls.”
- Path completability: whether a scripted player can reach the win condition within a limited number of steps; if not, which level segment is the blocking point.
- Determinism deviation: whether repeated runs with identical input produce identical trajectories and states. Large deviation means the implementation depends on randomness or unstable timing, and playability is uncontrollable.
Simple judging pseudocode:
def judge(spec, trace):hits, violations = 0, 0for m in spec.mechanics:if has_event_pair(trace, m.trigger, m.effect):hits += 1if reached_win(trace) and not spec.win_condition_satisfied(trace):violations += 1return {"hit_rate": hits / len(spec.mechanics),"violations": violations,"deterministic": is_repeatable(trace)}
6. Common Failure Modes and Debugging Tips
- Visual presence, logical absence: objects have textures but no colliders, or collision layers are misconfigured. When debugging, align the collision events in the evidence stream first, then look at the visuals.
- Win condition too broad: treating “entering the goal area” as the only condition and ignoring prerequisites such as collection. Write the conjunctive conditions explicitly in the intent layer.
- Timing coupling: using frame counts instead of time for resolution, causing different behavior at different frame rates. Use a unified time step instead.
- State leakage: enemy bullets or timers not cleared after respawn. In the evidence stream this shows up as residual events crossing scenes.
- Non-reproducible input: relying on real mouse coordinates or physical jitter. Switch to scripted input injection with a fixed seed.
7. Recommended Rollout Process
- Write the machine-readable design intent first, then generate code, avoiding “get it running, then backfill the docs.”
- Prepare three-stage levels and corresponding assertions for each game to form a minimal acceptance set.
- Run headless in a containerized environment and collect a structured event stream uniformly, making cross-comparison and regression easy.
- Wire evaluation into continuous integration: after every generation or modification, automatically run the evidence checks and output a violation list rather than a single score.
- Evaluate model capability in layers: pure logic, single-mechanic interaction, and multi-mechanic combination, to pinpoint whether the weakness is in code generation or in rule understanding.
8. Conclusion
AI-generated games still “fall far short,” and what is missing is not just volume of code but the ability to reliably translate design intent into runtime behavior. The way forward for evaluation is not to make the model more like a judge, but to build an automated verification loop between intent and evidence. When every mechanic can be triggered by script, recorded in a structured form, and judged by rules, “can it be played” becomes, for the first time, an engineering question with a ground-truth answer.
