Can AI-Built Games Really Be Played? A Benchmark for Runtime Verification
A benchmark evaluates whether AI-generated games are genuinely playable rather than merely visually plausible. Using 41 human-built reference games across 2D and 3D formats and 13 gameplay genres on open-source engines, it verifies runtime interaction logic, state-machine consistency, and causal chains such as “spike contact → health loss → death → level reset.” The article explains why games are a demanding test of AI coding, why visual review and coarse unit tests fall short, and what engineering teams can learn about validating AI-generated interactive code. The conclusion is sobering: current AI coding assistants can produce the “shape” of a game, but still frequently fail the causal completeness of gameplay logic.
Can AI Independently Build a Playable Game? What a Benchmark Reveals
Starting with a seemingly absurd scenario
Imagine asking an AI to complete a game independently. Most likely, it will first create characters and scenes, let the player character move and jump, and produce an interface that looks fairly convincing. But after deeper play, problems begin to emerge: spikes are clearly visible in the scene, yet the character takes no damage when stepping on them; a victory screen can appear normally, but it is triggered before the player has completed any required action.
This is not a fictional anecdote. It is a real problem that a research team encountered while systematically testing AI programming capabilities. It reveals a core contradiction that has long been overlooked: AI-generated games can “look right” and “play right” are two different things. To answer whether AI-built games are actually playable, we first need a scientific and rigorous evaluation method rather than conclusions based on intuitive impressions.
Why games are a touchstone for AI coding capability
For ordinary code tasks, correctness verification is relatively direct: write a function, run a set of unit tests, and pass if inputs and outputs match expectations. But game software is special because its correctness lives in runtime interaction, not in static code.
Specifically, game development involves several dimensions that ordinary software tasks struggle to cover:
- Dynamic interaction logic: Whether a character should die when touching spikes cannot be determined by reading a code snippet. You must actually control the character to walk into them and observe whether the state really changes.
- State-machine consistency: Win/loss determination, level progression, and resource settlement are essentially a complex state machine. If any transition condition is written incorrectly, the program may still run on the surface while the actual gameplay completely breaks.
- Causal chain completeness: The appearance of a victory screen must depend on the player completing an objective. If evaluation only checks whether a victory screen appears, it cannot identify a fatal flaw such as unconditional appearance.
As the research team noted: if you conclude that a game is correct merely because you see a victory screen, that may well be an illusion—because the game may not have any precondition at all. This is the starting point of the entire evaluation effort: you cannot only check whether the result looks like the right thing; you must verify whether the process actually occurred.
Two dead ends of traditional evaluation methods
Before this type of benchmark appeared, the industry generally followed two paths to evaluate AI’s ability to build games, and both had obvious limitations.
Path one: let a large model act as a “cloud judge.” That is, let another large model observe generated game frames or recordings and give a score. This is similar to asking an art teacher to grade a sculpture remotely—they can only look at photos and cannot touch the object, so their judgment is inherently discounted. Beautiful visuals do not mean self-consistent logic, and an AI judge can easily be fooled by “surface completion.”
Path two: write rigid unit tests. Check whether a function in the game code returns the correct value. Although this method is objective, its granularity is too coarse, and it completely fails to capture questions closer to the essence of games, such as whether dynamic interaction logic is self-consistent. A function returning the correct value does not prove that the entire gameplay chain works.
Some contemporaneous evaluation efforts also had different focuses: some relied on browser automation to interact with and evaluate web mini-games, while others relied on internal engine state assertions to test mechanics. They all moved toward “real verification,” but none truly connected design intent—what the game is supposed to be—with runtime evidence—what the game actually is at runtime.
The breakthrough: using 41 “reference answers” to establish a frame of reference
To let evaluation both know the “standard answer” and “verify hands-on,” the research team chose a solid route: first manually build a set of genuinely playable reference games, then use them as a baseline to measure AI outputs.
There are 41 reference games in total, spanning 2D and 3D and covering 13 gameplay types, including shooting, platforming, puzzle, strategy, and simulation/management. All were developed on open-source game engines. The reason for choosing open-source engines is practical: the technology stack is transparent and controllable, making it easy to precisely inject task requirements and collect runtime states during evaluation.
The value of this approach lies in:
- Providing comparable design intent: Each reference game has clear gameplay rules, win/loss conditions, and interaction logic, forming the “standard answer” for evaluation.
- Supporting executable process verification: The evaluation system can simulate player actions and check at runtime whether key events occur as expected—for example, whether the causal chain “step on spikes → health decreases → death → level reset” is complete.
- Covering a sufficiently broad gameplay spectrum: The 13 types prevent evaluation conclusions from being dominated by a single gameplay genre, making the results more generalizable.
Engineering lessons from the evaluation methodology
This benchmark approach also offers useful lessons for everyday engineering practice, especially for teams that make heavy use of AI coding tools.
First, when accepting AI-generated code, distinguish “static correctness” from “dynamic correctness.” Code that compiles and unit tests that pass are only the baseline. For features involving user interaction and state transitions, you must design end-to-end behavioral verification that simulates real operation paths through the entire flow.
Second, beware of the “result-oriented” testing trap. Asserting that the “final state is correct” is far weaker than asserting that “every transition is correct.” In test design, prioritize verification of key intermediate states and trigger conditions rather than looking only at the final output.
Third, evaluation granularity determines the credibility of conclusions. Assessments of AI capability should be built on multi-task, multi-type, reproducible sample sets. A single successful demonstration proves nothing.
Conclusion
Returning to the original question: can AI-built games be played? The answer from a process-based, executable-verification benchmark is quite sober: still far from it. Today’s strongest AI coding assistants can assemble the “shape” of a game, but they still frequently fail on the causal completeness of interaction logic. This is not a dismissal of AI coding; it is a reminder that where capability boundaries lie, evaluation must go deeper. For developers, understanding the methodology of “verifying the process rather than verifying appearances” is more valuable than remembering any specific score.
