Game Development as Human-LLM Interaction

Jiale Hong, Hongqiu Wu, Hai Zhao

Abstract

ChatGE (Chat Game Engine) is a novel framework that simplifies game development by converting it into a natural language dialogue. Utilizing a three-stage curriculum training strategy and a structured "script-code-utterance" interaction loop, ChatGE enables users to design and implement functional poker games without manual programming. Evaluation shows that ChatGE achieves 90% code correctness and a 100% execution success rate, significantly outperforming general-purpose LLMs like GPT-4o.

Introduction

Developing games typically requires mastery of complex programming languages and engine-specific APIs. While Large Language Models (LLMs) show promise in code generation, they often struggle with the long-term logical consistency needed for full game architectures. ChatGE addresses this by acting as a "neural game engine" that maintains a coherent development state and provides proactive guidance through multi-turn interactions.

Methodology

The ChatGE framework relies on a structured interaction loop and a specialized training pipeline to ensure alignment between user instructions and game logic.

The Interaction Loop

Each turn in ChatGE follows a three-step sequence:

  1. $P_{script}$ (Configuration): The LLM updates a high-level "game script" (a dictionary of rules), serving as a Chain-of-Thought bridge.
  2. $P_{code}$ (Implementation): The model generates Python code corresponding to the script's logic.
  3. $P_{utter}$ (Interaction): The model provides feedback and prompts the user for the next design choice.
An example of the ChatGE interaction loop, demonstrating the script-code-utterance structure.

Training Strategy

The model is trained using a Three-Stage Curriculum Strategy:

  • Stage 1 (Base): Initial instruction tuning of a Llama-3.1-8B base.
  • Stage 2 (Core): Fine-tuning on atomic interaction snippets to learn the relationship between language, scripts, and code.
  • Stage 3 (Alignment): Fine-tuning on complete multi-turn development histories to manage long-context dependencies.

Key Results

ChatGE demonstrates a significant performance leap over general-purpose models. In tests on unseen poker game configurations, it achieved 90.0% code accuracy, compared to 30.0% for GPT-4o and 10.0% for the base Llama model. Furthermore, it reached a 100% Execution Success Rate (ESR), meaning all generated code was immediately runnable without syntax or runtime errors. Human evaluators rated ChatGE at 97.5/100 for its logical guidance and interaction quality, highlighting its effectiveness as a collaborative development tool.

Conclusion

ChatGE proves that structured intermediate representations and curriculum learning are vital for complex, multi-turn code generation tasks. While currently focused on the modular domain of poker games, the framework's success suggests a path toward more general neural game engines capable of handling diverse genres and multi-modal asset generation.

Summary updated

BibTeX
@inproceedings{hong2025game,
  author = {Jiale Hong and Hongqiu Wu and Hai Zhao},
  title = {{Game Development as Human-LLM Interaction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure