TL;DR
GameLogicBench is a new benchmark designed to rigorously evaluate AI coding agents on their ability to implement game mechanics in the Godot engine. By introducing deterministic, tick-level state assertions across multiple hand-designed scenarios, it reveals that while current agents excel at writing runnable code, they struggle significantly to maintain complex runtime logic throughout a simulation.
What Problem Does This Paper Address?
While AI coding agents have made massive strides on software engineering benchmarks like SWE-bench, game development introduces a unique flavor of complexity: runtime state validation.
In traditional software, code correctness is often binary and easily caught by unit tests. In a video game, however, a simulation can easily conclude in a seemingly "successful" final state even if gameplay rules were repeatedly violated along the way. For instance, an AI-controlled character might successfully reach a goal point, but only because it clipped through a solid wall due to a buggy physics implementation.
Existing game benchmarks typically rely on replaying fixed examples, scoring video recordings, or using LLM/VLM judges. These methods are either non-deterministic, expensive, or blind to transient, under-the-hood rule violations. Furthermore, testing agents on a single fixed layout allows them to overfit or hardcode solutions rather than implementing true generalized logic.
Methods
To address these gaps, the authors developed GameLogicBench, an automated evaluation framework that runs entirely within sealed Godot engine containers.
[Agent Code Submission] ➔ [Sealed Godot Container] ➔ [Tick-Level Assertions] ➔ [Deterministic Verdict]
Key methodological innovations include:
- Tick-Level Assertions: Instead of only checking the final frame, the automated judge evaluates the game's internal state and event history at every single simulation tick.
- Multi-Scenario Testing: Solutions are evaluated across multiple distinct, hand-designed layouts with randomized parameter seeds to ensure the agent's code generalizes to changing environments.
- Validation via Mutants: To ensure the test suites measure actual behavioral correctness rather than stylistic implementation choices, the authors validated their tests against "mutants"—versions of the correct code where exactly one required capability was stripped out. A robust test suite must reject all mutants while accepting diverse, correct alternative implementations.
Datasets
The benchmark introduces a brand-new dataset consisting of 72 gameplay-logic tasks implemented in Godot using GDScript.
Across these 72 tasks, the authors hand-crafted 403 scenarios, which expand into 1,451 unique test cases via seeded parameter variations. The tasks are explicitly categorized into three tiers of integration scope:
- Atom (21 tasks): One isolated mechanic (e.g., basic enemy navigation or calculating hitstun recovery).
- Combo (28 tasks): Interacting mechanics within a purpose-built minimal game (e.g., a platform guard that must patrol, watch for intruders, and confront them).
- Repo (23 tasks): Repository-scale features that require the agent to integrate code into large, pre-existing open-source Godot projects.
Key Insights and Ideas
- Runnable $\neq$ Correct: A striking 74.3% of failed scenarios involved agent code that ran perfectly without crashing but simply failed to implement the gameplay rules correctly.
- The Deception of Final-State Checks: When the authors ablated their evaluator to only check terminal states (the end of the game), the apparent success rate shot up dramatically. This proves that traditional unit testing severely overestimates an agent's capability in dynamic environments.
- The "Open-Network" Contamination Trap: In an open-network setup, agents frequently look up the original open-source repositories from which the Repo-tier tasks were derived and copy the upstream code. Sealing network access is paramount for an accurate evaluation of an agent's reasoning capabilities.
Key Results
The authors evaluated 20 different combinations of state-of-the-art language models and agent scaffolds (including Claude Code, Codex, and OpenCode).
- Low Overall Ceiling: The absolute best-performing configuration—Claude-Opus-5 paired with Claude Code—managed to solve only 52.78% of the total task library.
- The Complexity Wall: Performance dropped sharply as the integration scope widened. Under the Claude Code scaffold, agents averaged a 45.2% solve rate on simple Atom tasks, which plummeted to 21.7% on complex Repo tasks.
- Diminishing Returns on Cost: Higher inference cost does not guarantee success. The authors noted that configurations achieving identical solve rates occasionally differed in total inference cost by up to 25×.
Limitations and Future Work
While GameLogicBench provides a highly rigorous environment for testing logic, it explicitly ignores aspects of game development that cannot be easily quantified by deterministic state machines, such as visual polish, narrative depth, art direction, and overall "game feel."
Additionally, the benchmark is currently restricted to Godot and GDScript within a single-container setup. The authors note that future iterations should expand to other major engines (like Unity and Unreal) and introduce multi-container client-server architectures to evaluate how coding agents handle the messy realities of networked multiplayer game logic.
Summary updated