Spec2Game: Can LLMs Generate Complete Playable Games from Detailed Specifications?
Yixue Cai, Yuzhe Zhao, Hanxiang Chao, Qingsen Ma, Ziheng Xiong, Jinhu Qi, Irwin King
Abstract
Generating an executable program does not necessarily mean that it correctly implements the behavioral requirements specified in natural language. To evaluate large language models' ability to realize detailed specifications as complete interactive programs, we introduce Spec2Game, a benchmark that requires models to generate complete Pygame projects from detailed natural-language game specifications. Spec2Game comprises 15 game families and 150 task instances, with one canonical task and nine controlled rule variants per family, spanning three levels of implementation complexity. Using source-code, runtime, and visual evidence, we evaluate generated projects along four dimensions---Executability, Specification Realization, Code Quality, and User-Facing Quality. Across 14 LLMs and 3,330 generated projects, we find that high executability does not imply faithful specification realization. Component-level analysis further shows that models perform substantially better on Game Element Modeling than on Rule and Mechanism Modeling or Goal and Termination Modeling, indicating that faithfully implementing game rules and termination logic remains a major challenge.
Create a lesson
Metadata
- Comments
- 37 pages, 11 figures
Related papers
Nash Equilibrium Text: A Game-Theoretic Decoding Framework for Text Generation
Shared title terminologycs.AIAlireza Jafari, Arman Adibi, Mohammad Ghavamzadeh et al.
Do LLMs Understand Sequential Structure? A Controlled Study of Inference and Generation
Shared title terminologycs.AIJerry Wang, Zhengxiang Wang, Ting Yu Liu et al.
GaokaoMathGen: Chinese Gaokao Mathematics Finale Problem Generation Controlled by Latent Reasoning Structures
Shared title terminologycs.AIQian Chen, Kun Zhu, Zhongyi Wang et al.
A Generative AI Agent to Emulate Interactive Human-driven Vehicles for Automated Driving Testing in Urban Areas
Shared title terminologycs.AIJia Hu, Changjian Yu, Panqu Wang et al.
Reproducing History Is Not Enough: Intervention-Level Assurance for LLM-Generated Simulators
Shared title terminologycs.AIAshraf Abdul-Muumin, Aniruddha Chattopadhyay, Noorbakhsh Golilarz et al.
BRAG: Bayesian Retrieval Augmented Generation
Shared title terminologycs.AIJavier Movellan, Manjot Bilkhu, Young-mok Jung et al.