Can AI Generate Playable Games? Why Current Evaluation Falls Short

    This article examines why generating code that runs is not the same as generating a game that is actually playable, and why evaluating AI-generated games is harder than evaluating ordinary code tasks. It covers the limits of model-review and assertion-based approaches, then outlines a reusable evaluation strategy built on verified reference games and interaction-based evidence collection, including pseudocode, four categories of cross-checked evidence, and practical implications for development teams. Readers will learn how to turn gameplay intent into machine-readable rules and runtime behavior into traceable evidence.

    1. The Starting Problem: Running Is Not the Same as Playable

    In current AI-assisted development practice, getting a model to generate a program that “looks like a game” is no longer difficult. The typical output path is highly predictable: build the scene and characters, add basic controls such as movement and jumping, and finish with a win/lose screen. At this point, the code usually compiles and the visuals render correctly.

    The real breaking point appears at the interaction layer. A character can visibly stand on spikes yet take no damage; a victory screen can appear even though its trigger has nothing to do with player behavior; enemies move around but never disappear when hit. These are not isolated cases. They are patterns that researchers repeatedly observe when systematically testing AI coding capabilities.

    The core contradiction can be summarized in one sentence: static correctness cannot prove dynamic self-consistency. A game is essentially a state machine that keeps evolving under player input, while traditional code evaluation only checks whether function return values match expectations. It inherently lacks the dimension of “whether the process actually happened.”

    2. Why Game Evaluation Is Much Harder Than Ordinary Code Tasks

    Ordinary programming tasks are cheap to verify: given an input, compare the output, and close the loop with unit tests. Games are entirely different, because their correctness is distributed along a timeline.

    Take a platformer as an example. The rule “touching spikes should cause death” cannot be confirmed by reading a code snippet. You have to actually move the character to the spikes and observe whether health or state changes. Likewise, “completing the level” is not just about whether a victory screen exists; you must confirm that the screen appears only after the player has performed the required actions.

    This leads to two basic principles of evaluation:

    • Design intent must be described explicitly: evaluators need to know what the game was supposed to be, otherwise there is no basis for judging deviation.
    • Runtime evidence must be genuinely collected: evaluators need to operate the game themselves and obtain first-hand data on what it actually does.

    Satisfying only one of these fails. Intent without execution is like holding a manual but never turning on the machine. Runtime footage without intent is like grading a sculpture assignment from a single photo, which inevitably weakens the judgment.

    3. Two Extremes in Existing Approaches and Their Limits

    Before dedicated game evaluation benchmarks appeared, the industry largely solved the problem along two routes.

    The first is the model review route: let another large model observe the running screen or the code and produce a score. Its strengths are broad coverage and low cost. Its weakness is the lack of a verifiable factual basis, which easily leads to “it looks right, so it is right” misjudgments, especially for hidden logic such as win/lose conditions.

    The second is the assertion testing route: write fixed assertions inside the game logic to check whether a given state variable matches expectations. It is precise but rigid, covering only branches thought of in advance, and it struggles to express cross-frame, cross-module properties such as whether the interaction process is self-consistent.

    Exploratory work from the same period focused on directions such as in-browser interaction evaluation and in-engine state assertions. Each has value, but they share a common shortcoming: they do not connect “design intent” with “runtime evidence.” As a result, evaluation conclusions are hard to reproduce and hard to use for horizontal comparison of different models’ real capabilities.

    4. A Reusable Evaluation Approach: Reference Implementation Plus Interaction Forensics

    A practical way out of this dilemma is to first build a set of genuinely playable reference games as carriers of intent, then put the program under test through the same interaction scripts.

    Key design points for the reference set include:

    1. Broad dimensional coverage: include both 2D and 3D scenes, and cover multiple gameplay types such as shooting, platforming, puzzle solving, strategy, and simulation/management, so conclusions are not limited to a single genre.
    2. Complete and playable implementation: the reference version must be fully implemented by humans and verified, otherwise the “ground truth” itself is untrustworthy.
    3. Machine-readable rules: every gameplay constraint should be translated into an explicit condition, for example “the character enters a dead state after contacting a hazard” or “the completion prompt is allowed to appear only after all targets are collected.”

    On top of this, the evaluation flow can be abstracted into the following pseudocode:

    1. def evaluate(candidate_game, reference_spec, script):
    2. report = []
    3. for case in reference_spec.cases:
    4. candidate_game.reset()
    5. trace = replay(candidate_game, script[case.id])
    6. ok, evidence = case.verify(trace)
    7. report.append({
    8. "case": case.id,
    9. "passed": ok,
    10. "evidence": evidence, # state sequences, event logs, key frames
    11. })
    12. return summarize(report)

    The key design here is that evidence cannot be omitted. An evaluation conclusion must be traceable to a concrete sequence of state changes rather than an isolated score. Only then can you distinguish “actually implemented the rule” from “happened to display the right screen.”

    To make evaluation more stable, it is advisable to split the judgment into four mutually independent types of evidence:

    • Input response evidence: whether the character’s state changes within the expected frames after a given action.
    • Rule trigger evidence: whether hazards, targets, and boundary conditions are evaluated as designed.
    • Flow closure evidence: whether failure, retry, and completion flows are driven by player behavior rather than triggered unconditionally.
    • State consistency evidence: whether variables such as score, health, and level progress remain self-consistent across scene transitions.

    Cross-checking all four types is what effectively identifies typical defects such as “fake completion,” “collision without detection,” and “state drift.”

    6. Implications for Development Practice

    This approach has direct value for teams using AI coding tools. First, gameplay constraints should be written as verifiable items during the requirements stage, rather than a vague “make a jumping game.” Second, the acceptance stage should introduce automated action replay and event log collection, turning “play it once” into a repeatable engineering process. Finally, defect localization should rely on state sequences rather than screenshots: screenshots only show the symptom, while sequences explain the cause.

    Supporting this kind of evaluation typically requires, on the engineering side, a container platform to keep environments consistent, object storage to hold replay data and logs, a message queue to schedule batch tasks, and monitoring and alerting to track changes in failure rates. These are all general capability categories, and specific choices can follow the team’s existing infrastructure.

    7. Conclusion

    The ability of AI to generate playable games is still at the “looks similar” stage. The real bottleneck is not code generation but closed-loop verification of dynamic logic. Writing design intent as machine-readable rules and capturing runtime behavior as traceable evidence is currently the most reliable evaluation path, and a prerequisite for teams to measure the real returns of AI-assisted development.