PlayCoder: Making LLM-Generated GUI Code Playable
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have achieved strong results in code generation, but their ability to generate GUI applications, especially games, remains insufficiently studied. Existing benchmarks mainly evaluate correctness through test cases, which are inadequate for GUI applications because these systems are interactive, event-driven, and require correct state transitions across sequences of user actions. Their evaluation therefore should consider interaction flows and UI logic rather than only pass/fail outcomes. To study this problem, we introduce PlayEval, a repository-aware benchmark built from 43 multilingual GUI applications in Python, TypeScript, and JavaScript. Unlike prior GUI benchmarks that are difficult to adapt to desktop environments, PlayEval covers six major GUI application categories and directly supports code-generation evaluation. We further propose Play@k, a metric that measures whether at least one of *k* generated candidates can be played end-to-end without logical errors. To support reliable evaluation, we develop PlayTester, an LLM-based agent that performs task-oriented GUI playthroughs and detects logic violations automatically. Experiments on 10 state-of-the-art code LLMs show that, despite high compilation rates, they achieve near-zero Play@3, revealing major weaknesses in generating logically correct GUI applications. To address this limitation, we present PlayCoder, a multi-agent, repository-aware framework that generates, evaluates, and iteratively repairs GUI application code in a closed loop. PlayCoder substantially improves both functional correctness and semantic alignment for open-source and closed-source models, reaching up to 38.1% Exec@3 and 20.3% Play@3. Case studies further show that it can uncover silent logic bugs missed by traditional metrics and fix them through targeted edits.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 21 Apr 2026.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026GUI Agents for Continual Game Generationcited by 16
- 2026GameXpert-Bench: How Far Are Coding Agents from Expert Game Development?cited by 6
- 2026DiagEval: Trajectory-Conditioned Diagnosis for Reliable Software Evaluation with GUI Agentscited by 2
- 2026Cookie-Bench: Continuous On-screen Key Interaction Evaluation for Web Generationcited by 2
- 2026AI for Games in the Foundation Model Eracited by 2
- 2026GameLogicBench: Evaluating Coding Agents on Runtime Game Logic with Tick-Level State Assertionscited by 2
- 2026WebGrader: Training LLMs for Web Development with Self-Evolving Programmatic Gradercited by 1
- 2026OpenHarmony Bench: Evaluating LLMs and Coding Agents on OpenHarmony App Developmentcited by 0
- 2026GameASG-Bench: Benchmarking Autonomous Software Generation for Game Developmentcited by 0
- 2026SWE-Game: Can Coding Agents Build the Games We Want?cited by 0
- 2026SWE-Game: Can Coding Agents Build the Games We Want?27 Sep 2026
- 2026GameLogicBench: Evaluating Coding Agents on Runtime Game Logic with Tick-Level State Assertions18 Sep 2026
- 2026GameASG-Bench: Benchmarking Autonomous Software Generation for Game Development18 Sep 2026
- 2026AI for Games in the Foundation Model Era15 Sep 2026
- 2026GameXpert-Bench: How Far Are Coding Agents from Expert Game Development?22 Aug 2026
- 2026OpenHarmony Bench: Evaluating LLMs and Coding Agents on OpenHarmony App Development17 Aug 2026
- 2026WebGrader: Training LLMs for Web Development with Self-Evolving Programmatic Grader6 Aug 2026
- 2026Cookie-Bench: Continuous On-screen Key Interaction Evaluation for Web Generation28 May 2026
- 2026GUI Agents for Continual Game Generation27 May 2026
- 2026DiagEval: Trajectory-Conditioned Diagnosis for Reliable Software Evaluation with GUI Agents17 May 2026
Similar, not cited
Close in wording, no citation either way
- 2024UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedback
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
- 2025Holistic Evaluation of State-of-the-Art LLMs for Code Generation
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Models
- 2026Rethinking Code Performance Benchmarks for LLMs
- 2025EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code
- 2026SchemaGUI: A Schema-Driven Benchmark for Controllable GUI Generation Evaluation