ProxyWar: Dynamic Assessment of LLM Code Generation in Game Arenas
Wenjun Peng, Xinyu Wang, Qi Wu
TL;DR
ProxyWar tackles the gap between static code-generation benchmarks and real-world software performance by embedding LLM-generated agents into diverse, competitive game environments. The framework integrates automated code generation, hierarchical testing with repair loops, and tournament-based skill ratings (via TrueSkill) to yield a multi-dimensional assessment of both functional correctness and operational quality, including efficiency, robustness, and adaptability. Empirical results across 18 LLMs and 9 games reveal that traditional metrics like pass@1 often fail to predict competitive success, and that environmental factors strongly shape model strengths, underscoring the need for competition-based evaluation in model selection and deployment. The work provides a scalable, reusable blueprint for researching LLM-driven algorithm discovery and robust, adaptive problem solving, with broad implications for practical code generation and software engineering workflows.
Abstract
Large language models (LLMs) have revolutionized automated code generation, yet the evaluation of their real-world effectiveness remains limited by static benchmarks and simplistic metrics. We present ProxyWar, a novel framework that systematically assesses code generation quality by embedding LLM-generated agents within diverse, competitive game environments. Unlike existing approaches, ProxyWar evaluates not only functional correctness but also the operational characteristics of generated programs, combining automated testing, iterative code repair, and multi-agent tournaments to provide a holistic view of program behavior. Applied to a range of state-of-the-art coders and games, our approach uncovers notable discrepancies between benchmark scores and actual performance in dynamic settings, revealing overlooked limitations and opportunities for improvement. These findings highlight the need for richer, competition-based evaluation of code generation. Looking forward, ProxyWar lays a foundation for research into LLM-driven algorithm discovery, adaptive problem solving, and the study of practical efficiency and robustness, including the potential for models to outperform hand-crafted agents. The project is available at https://github.com/xinke-wang/ProxyWar.
