TRANSMISSION // 2611.31974v1
Can Coding Agents Build Programs That Play Modern Games?
Source published
Coding4Games tests whether AI coding agents can turn visual game interaction into standalone programs. The programs often beat GUI agents in benchmark tasks, but humans remained ahead on many games and self-testing did not reliably fix failures.

Rather than asking an AI to choose every move, researchers asked coding agents to write game-playing programs that continue without language-model calls. Their benchmark suggests this approach can work on some tasks, while exposing a stubborn challenge: turning feedback into effective revisions.
A different way to test game-playing AI
A game-playing AI can be asked to inspect a screen and choose an action again and again. But repeated model calls take time, and a real-time game may keep moving while the AI is deciding. An alternative is to have a coding agent explore a game, write a program that responds to what it sees, and then let that program play on its own.
The new benchmark, Coding4Games, asks whether general coding agents can do that using visual observations and standard game controls—not privileged access to a game’s internal state or a game-specific programming interface. The distinction matters: producing working code is not the same as producing a controller that can handle a changing game reliably.
How the benchmark works
The researchers tested 12 coding agents across 15 games, including Sekiro: Shadows Die Twice, Forza Horizon 5, Balatro and Overcooked! 2. The games were grouped by demands such as precise movement, combat timing, resource planning and multi-step tasks. Each task specified a starting situation, an objective and an interaction budget.
During development, an agent could use a persistent coding environment to inspect gameplay through screenshots, send ordinary player inputs, run candidate programs and revise them. The game server controlled the interface and kept track of task scores. Agents could not directly inspect game implementation files or alter the scoring system.
The selected program was then frozen and tested in a fresh environment, without further language-model inference or public network access. Repeated test runs gave the researchers a way to measure performance beyond a single lucky or unlucky attempt. They also examined development records: what information the programs used, how deeply agents changed them, and whether follow-up tests showed that targeted problems had been resolved.
For comparison, the study included GUI agents that used a language model to act during play, as well as one human player. The human was briefed on basic rules and controls but was not an experienced player of every game. The GUI-agent games were paused during model inference, an important detail when interpreting comparisons with real-time play.
What the results show—and do not show
The strongest program for each game scored higher than the strongest GUI baseline on 13 of the 15 games and tied it on one, according to the paper. That is a best-per-game comparison: it does not mean one program or model dominated across the suite. The results varied substantially by game and by model. The human player scored higher than all agents on 10 games; the best program exceeded the human on three and tied on two.
The development records point to a gap between noticing and fixing. Agents often tested changes in situations where a reported problem could be assessed, but that did not guarantee the problem was resolved. Across agents, the paper reports problem-resolution scores from 35.7% to 83.3% for assessed, targeted issues. A change can also fix one observed case without improving overall performance, so the researchers stress the need for independent testing.
More elaborate control code was not automatically better. In one Forza Horizon 5 example, a more complex controller scored below a simpler route-following program. The authors describe calibration problems as a possible explanation, but the example does not establish that complexity itself caused the weaker result.
Limits and open questions
These findings are specific to the benchmark’s 15 tasks, scoring rules, budgets and test setup. Three test episodes per method and game were used, so estimates may still be sensitive to game randomness or program variability. The single human reference is not a measure of expert play, and the paused GUI baseline is not a direct test of how those agents fare when games continue running during inference. Nor does a high score on one task show that a program will transfer to other games or situations.
Coding4Games is also a preprint: its reported results should be treated as preliminary rather than as settled scientific consensus. The paper’s central contribution is a way to test whether coding agents can turn visual interaction into independently runnable behavior. Its results suggest they sometimes can—but building a program is only part of the job. The harder question is whether agents can use experience to make revisions that hold up beyond the examples they have already seen.
- Coding4Games
- AI coding agents
- video game AI
- game-playing programs
- AI benchmark
- program synthesis
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can AI Write a Game Controller, Not Just Pick a Move?
Shared method: Both benchmarks evaluate standalone game-playing programs developed through interaction, which run without language-model inference during play. Coding4Games has agents iteratively develop programs through a standard player interface and tests a frozen program independently; PlayScriptBench uses a four-stage VLM pipeline to synthesize autonomous controllers for deterministic, bounded-state HTML5 games. This is a bounded protocol comparison, not evidence that their performance results are directly comparable.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.31974v1 — Original paper
Excerpt reference:
static/papers/2611.31974v1.md:120-195
Basis: Paper text
Source SHA-256:08cc1f66a802c291244868a02030b6a4998bcfc5c819ced005f914c5c4ac511d2611.27741v1 — Original paper
Excerpt reference:
static/papers/2611.27741v1.md:132-170
Basis: Paper text
Source SHA-256:34d4020501128ce2a6c510620003059f53601b91f629f0fe6e81c5942d2d0962
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can AI Write a Game Controller, Not Just Pick a Move?
Source published
Shared keywords: program synthesis
Testing AI coding agents on branching clinical rules
Source published
Shared keywords: ai benchmark
F3-AGI tests a frugal route to abstract reasoning—with a calibration caveat
Source published
Shared keywords: program synthesis
Teaching an evolutionary solver to see objects, not just pixels
Source published
Shared keywords: program synthesis
ALBI tests language-model rules with a logic engine
Source published
Shared keywords: program synthesis