TL;DR
SWE-Game is a new, rigorous benchmark designed to test if AI coding agents can handle the multi-faceted challenge of game development. By tasking agents with building, repairing, and porting 41 different Godot games, the researchers found that while current top-tier models like Claude 3.5 Opus can create visually impressive results, they still struggle significantly with complex gameplay logic and strict requirement adherence.
What Problem Does This Paper Address?
While AI agents have made massive strides in solving general software engineering tasks (like those in SWE-bench), game development is a different beast. It requires a "symphony" of code, visual assets, and engine-specific behaviors to create a cohesive, interactive experience.
Existing benchmarks often fall into two traps: they are either too narrow (testing only small code snippets) or too shallow (judging a game solely on whether it "looks" right). A game might look like a platformer in a screenshot, but if the player can walk through spikes without dying or the "victory" screen triggers randomly, the implementation has failed. The authors created SWE-Game to bridge this gap, connecting high-level design requirements to concrete, executable evidence of gameplay.
Methods
The researchers developed a framework that treats game development as a verifiable engineering task. The core of their approach is a shared instrumentation interface.
Instead of just looking at the code, the evaluator "plugs into" the agent's game. Agents are required to tag objects (e.g., labeling the player character as gb_player) and bind state variables (like health or score). This allows the evaluation system to:
- Replay Certified Routes: The evaluator runs a sequence of inputs known to work in the reference game and checks if the agent's version reaches the same milestones.
- Verify Logic: It checks if touching a hazard actually reduces health or triggers a respawn.
- Visual Rubrics: A Vision-Language Model (VLM) acts as a "visual judge," using detailed, game-specific rubrics to score presentation, feedback, and asset use.
Datasets
The benchmark, SWE-Game, consists of 247 tasks derived from 41 reference games built in the Godot engine.
- Diversity: The games span 13 categories (Shooting, Platforming, Strategy, etc.) in both 2D and 3D.
- Complexity: The reference games contain over 168,000 lines of GDScript in total.
- Task Modes:
- Brief-to-Game: Build a game from a short text description.
- GDD-to-Game: Implement a game based on a full Game Design Document.
- Skeleton Completion: Finish a partially implemented project.
- Bug Repair: Fix 83 specific, injected faults.
- Godot-to-Unity Porting: Translate a Godot project into a functional Unity project.
Key Insights and Ideas
- Visuals are Deceptive: One of the most important findings is that "visually plausible" games often hide broken mechanics. An agent might recreate the look of a level perfectly but fail to implement the logic that makes it a game.
- The "Requirement Omission" Trap: For top-tier models, the primary reason for failure wasn't necessarily bad coding, but simply forgetting to implement specific requirements mentioned in the design documents.
- Execution-Based Testing is Superior: The study found that automated engine-state checks are far more accurate (92.6% accuracy) at detecting gameplay defects than VLM-based video judges (78.4%). This highlights the need for "runtime evidence" in AI evaluation.
- Porting is a High Bar: Moving a game from Godot to Unity proved to be a significant challenge, requiring the agent to understand two different engine paradigms and languages (GDScript vs. C#) simultaneously.
Key Results
The researchers evaluated six major models, including GPT-4o (Luna), Claude 3.5 Opus, and Grok.
- Top Performer: Opus5 (Claude 3.5 Opus) achieved the highest scores across all five task types.
- Construction Difficulty: Even the best models struggled with building games from scratch. In the "Brief-to-Game" task, the highest score was only 50.38 out of 100.
- Bug Repair Success: Models were much better at fixing existing games than building new ones, with Opus5 scoring 83.46 in the repair suite.
- Human Correlation: The automated visual scores showed a high Spearman correlation (0.829) with human ratings, suggesting the VLM rubrics are a reliable proxy for human aesthetic judgment.
Limitations and Future Work
The authors acknowledge several limitations:
- Scale: With 41 games, the benchmark is comprehensive but doesn't yet cover "AAA" scale projects or long-term development cycles.
- Engine Scope: The porting task is currently limited to Godot-to-Unity.
- Agent Frameworks: Each model was tested with a specific agent framework; different scaffolding might yield different results.
Future work aims to expand the game collection, evaluate longer development workflows, and further refine how automated scores translate to the actual player experience.
Summary updated