cs.AINov 24, 2026

Coding4Games: Can Modern Coding Agents Play Modern Video Games?

Authors: Shifang Zhao, Haoyu Wang, Yuyang Yin, Dong Chen, Xingyilang Yin, Yunkang Tao, Honghao Chen, Guangzhi Wang, 

Organizations: Tencent ARC Lab · GVC Lab · Beijing Jiaotong University · Nanjing University

Abstract

Games, especially modern AAA games, challenge language models to perceive complex scenes, control actions, and make decisions over long horizons. Existing game benchmarks primarily test language models as computer-use agents that query a language model throughout play, incurring repeated inference cost and, in real-time games, acting while the environment continues to evolve. We ask whether coding agents can learn from game interaction to develop standalone game-playing programs that run without language model inference. We thus introduce Coding4Games, a benchmark for evaluating whether coding agents can develop standalone programs that play modern games through visual observations and standard game inputs. Coding4Games has three defining features: 1) Diverse Modern Games, covering 15 games with diverse visual, strategic, and control demands; 2) Development-Test Separation, in which a coding agent uses a sandbox and the standard player interface to iteratively develop a program, after which the selected program is frozen and independently tested without language-model inference; and 3) Outcome and Process Evaluation, which measures not only game performance and reliability but also how agents use feedback, revise programs, and resolve problems during development. Across 15 games, the best program per game outscores the strongest GUI baseline on 13 and ties it on one. The human player outscores all agents on 10 games. We additionally examine the effects of development budgets. Coding4Games evaluates whether coding agents can turn their understanding of complex interactive environments into programs that work reliably on their own.

Figures & tables

Explore similar work

Aug 22, 2026

GameXpert-Bench: How Far Are Coding Agents from Expert Game Development?

Recent large language models (LLMs) can operate as coding agents that build complete games from natural language requests. Game development is especially demanding because program logic, visual and audio content, interfaces, interaction and playability must function together in one executable artifact. Measuring this capability therefore requires evaluation of both game product and the development process. Existing benchmarks often assess the game development capabilities of LLMs by evaluating the final artifact or an isolated development stage. Our analysis of complete human-agent development trajectories identifies three stages that together span the lifecycle of game development with a coding agent: initial game generation, bug diagnosis and repair, and optimization over multiple turns. Therefore, we introduce GameXpert-Bench, which operationalizes the three lifecycle stages as three complementary benchmark tracks. GameGen evaluates complete game creation from a single request in an empty workspace. GameFix evaluates diagnosis and repair when defects are reported or left for the agent to discover. GameOpt evaluates cumulative optimization through request chains seeded by real development trajectories between users and agents. We evaluate each track using live game interaction, deterministic behavioral tests, or final product criteria with regression checks. The suite contains 97 generation tasks across 11 genres; 100 repair tasks from 50 game levels verified by humans, each with 19-27 injected bugs; and 17 optimization chains with six turns and 102 requests. Across the three tracks, current agents are more reliable at producing playable foundations and implementing explicit requirements than at discovering defects, verifying runtime behavior, and preserving functionality across changes.
Jun 16, 2026

GameCraft-Bench: Can Agents Build Playable Games End-to-End in a Real Game Engine?

Game generation is an emerging application of coding agents, requiring models to transform natural-language specifications into playable interactive systems. Unlike traditional coding tasks, game generation takes place within a game engine, where scripts, scenes, assets, rendering, and runtime interactions must jointly produce coherent gameplay. We formalize end-to-end game generation as the problem of producing a complete game artifact that realizes a specification through observable player-game interaction in a target environment. We argue that evaluating this setting requires three desiderata: Engine Grounding, Artifact Completeness, and Interactive Verification. We propose an interaction-grounded evaluation framework that assesses executable gameplay through replayed demonstrations and rubric-guided multimodal judging. We instantiate this framework as GameCraft-Bench, a benchmark comprising 140 Godot tasks across 15 game families. Evaluations of frontier coding agents show that end-to-end game generation remains highly challenging: the strongest agent achieves only 41.46%, and most agents score below 40%. Further analysis reveals that while agents often implement recognizable mechanics, they struggle to deliver complete games with sufficient content, functional visual feedback, and coherent presentation. See https://tongxuluo.github.io/gamecraft-bench-website for demos, code, and data.
Sep 15, 2026

GameReplica: A Benchmark for Black-Box Visual Game Replication by Vision-Language Agents

Benchmarks for coding agents typically assess implementation from explicit specifications, leaving open whether agents can discover and reproduce systems whose rules are undocumented and accessible only through interaction. We study this capability in web games, which offer controlled environments with observable actions and outcomes, and introduce GameReplica, a benchmark for end-to-end black-box game replication. It comprises 125 instances spanning 25 web games and five core mechanism families, with each game instantiated at five difficulty levels. Under container isolation, an agent accesses the target game only through an action--screenshot interface, may iterate between probing the game, implementing a replica, and checking it, and delivers a self-contained runnable replica together with a rule checklist. A reference-grounded evaluation then scores the deliverables separately on rule consistency, implementation consistency, and visual fidelity. Experiments across six models and five agent runtimes show that black-box replication remains challenging: Claude Opus 4.8 achieves the highest Overall score, 71.6%, while the other models obtain 4.0%--43.0%. Every model scores highest on visual fidelity and lowest on rule consistency, suggesting that reproducing appearance is easier than recovering mechanics. Difficulty widens the gap: from L1 to L5, the four lower-scoring models show relative Overall score declines of 33%--63%, whereas the strongest model declines by less than 5%. In the evaluated configurations, outcomes vary more across models than across agent runtimes, and most attributed failures of weaker models arise during exploration, before replica code is written. Resources and interactive demonstrations are available at https://qqqqqqby.github.io/GameReplica/.