GameASG-Bench: Benchmarking Autonomous Software Generation for Game Development

Xiuhui Zhang, Yi Chen, Shusheng Xu, Fan Li, Huan Wang, Tongkai Yang, Binhang YuanarXiv 2026

TL;DR

GAMEASG-BENCH is a new evaluation framework that treats behavioral testability as a core requirement for AI coding agents generating complete applications. By forcing agents to implement a standardized testing interface alongside their code, the benchmark reveals a massive gap in current LLM capabilities: while top models achieve over 90% average test pass rates, their strict end-to-end task success rate tops out at just 55.3%.

What Problem Does This Paper Address?

Autonomous Software Generation (ASG) has progressed rapidly from writing isolated functions to attempting end-to-end application development. However, evaluating whether an AI-generated application actually works as intended remains a major challenge.

Traditional benchmarks look at static code quality or whether a program compiles. But for interactive, state-heavy applications like video games, a program can look completely plausible and compile perfectly while still being totally broken. For example, a movement routine might look correct in isolation but fail to update the global game state, operate during a locked phase, or render properly on screen.

The authors argue that aggregate "playable" judgments from human or GUI playtesters are too vague. Instead, we need a systematic way to evaluate whether an agent can deliver a complete, executable application whose interacting components collectively satisfy complex behavioral requirements.

Methods

The core innovation of GAMEASG-BENCH is embedding behavioral testability directly into the generation prompt. Before the AI agent writes a single line of game logic, it is given an evaluation interface specification. The agent must expose a global window.__gameTest object containing four standardized methods:

  • reset(): Restores the initial game state.
  • loadScenario(name): Sets up specific legal states (e.g., late-game or near-terminal conditions) to test specific mechanics without playing through the whole game.
  • input(action): Executes player-level actions programmatically.
  • getSnapshot(): Returns a JSON summary of the internal game state.
Task documents and their roles in the evaluation loop

Using this interface, the evaluation harness runs a two-layered testing suite:

  1. L1 (Source-level compliance): Static checks verifying syntax, required interface declarations, and the absence of anti-patterns.
  2. L2 (Controlled behavioral execution): Headless Chromium tests that execute a prepare-act-observe sequence. The harness loads a scenario, injects real browser inputs (like mouse drags or clicks), and uses snapshots and visual rendering evidence to verify that the game state transitions correctly and respects specified invariants.

The benchmark defines Strict Task Success as a binary metric: an agent only succeeds if it delivers a valid artifact and passes every single L1 check and core L2 requirement.

Datasets

The authors introduce the GAMEASG-BENCH corpus, consisting of 47 browser-native game-generation tasks. The tasks are designed to be behavior-dense proxies for general software engineering problems.

The corpus spans 12 primary genres (including puzzles, arcade games, simulators, and shooters) and features a mix of 2D (Canvas/DOM) and 3D (Three.js) interactions.

Composition of the 47 tasks across genre, dimension, and technology

In total, the benchmark includes 336 L1 checks and 885 L2 checks (534 of which are core gameplay requirements) to rigorously evaluate the generated games.

Key Insights and Ideas

  • The Illusion of High Pass Rates: The most striking insight is that high average check pass rates obscure total task failure. An agent can pass 93% of individual behavioral checks, but if it fails a single core mechanic (like failing to register a mouse drag that serves a customer), the game is broken.
  • Larger Codebases $\neq$ Better Software: More verbose output or higher token usage did not correlate with success. For instance, DeepSeek-V4-Pro produced the largest file sizes (~90 KB) but achieved fewer strict task successes than the more concise GPT-6-Astra (~79 KB).
  • Reasoning Effort is Non-Monotonic: Intuitively, giving an LLM more "thinking time" should improve results. However, when testing DeepSeek-V4-Flash, setting the reasoning effort to "high" yielded more strict task successes (19/47) than setting it to "maximum" (18/47), despite the maximum setting using nearly 37% more reasoning tokens.
  • Harness Divergence: The choice of agent harness (e.g., Claude Code vs. Codex CLI) radically alters the types of bugs an agent encounters and repairs. Even when using the exact same underlying model, the two harnesses only overlapped on 10 successful tasks, failing and succeeding on entirely different subsets.

Key Results

The authors evaluated nine state-of-the-art agent stacks on the full 47-task benchmark:

End-to-end evaluation results across nine agent stacks
  • Top Performer: GPT-6-Astra paired with the Codex CLI achieved the highest strict task success rate at 55.3% (26/47 tasks) and the highest mean L2 pass rate (93.2%).
  • Baseline Comparison: Claude-Opus-5 followed closely at 51.1% success. DeepSeek-V4-Flash achieved 38.3% success under the baseline configuration.
  • Tool Access Matters: When tool access (like file read/write and syntax checking) was restricted for DeepSeek-V4-Flash, strict success dropped precipitously from 18 tasks down to just 6–9 tasks.

Limitations and Future Work

While GAMEASG-BENCH provides a highly rigorous framework, it operates under specific constraints:

  • Bounded Scope: The benchmark is restricted to single-file, browser-native applications (index.html). It explicitly excludes applications requiring backends, external databases, or user authentication.
  • Interface Implementation Dependency: The evaluation relies on the agent correctly implementing the window.__gameTest interface. If an agent builds a flawless game but botches the testing API, it will register as a failure.
  • Harness Evaluation: The current runner does not strictly prevent agents from marking core requirements as NOT_APPLICABLE to bypass them, which is an area the authors plan to tighten in future iterations of the harness.

Summary updated

BibTeX
@misc{zhang2026gameasg,
  author = {Xiuhui Zhang and Yi Chen and Shusheng Xu and Fan Li and Huan Wang and Tongkai Yang and Binhang Yuan},
  title = {{GameASG-Bench: Benchmarking Autonomous Software Generation for Game Development}},
  year = {2026},
  eprint = {2609.21293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.21293},
}
Figure