arXiv(opens in a new tab)cs.HCAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.12195

IF:CARGO: LLM-Based Semantic Compilation for Al-Native Rule Programming Games

Ting-Chen Hsu, Lianye Zhang, Jiangxu Lin, Zhaoyi Yu, Fei Qin, Zihao Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

IF:CARGO: LLM-Based Semantic Compilation for AI-Native Rule Programming Games

Ting-Chen Hsu 1∗^{1*}, Lianye Zhang 2^{2}, Jiangxu Lin 1^{1}, Zhaoyi Yu 1^{1}, Fei Qin 3^{3}, Zihao Chen 4∗^{4*}

1^{1}School of Animation and Digital Arts, Communication University of China

2^{2}Department of Computing, The Hong Kong Polytechnic University

3^{3}School of Information Engineering, Lanzhou City University

4^{4}School of Life Science and Technology, University of Electronic Science and Technology of China

tingchenhsu.ac@gmail.com, lianye.zhang@connect.polyu.hk, chinalinjiangxu@gmail.com, jiayue5152024@gmail.com, 15209446631@163.com, the4pp1e7@163.com

Abstract

This case study presents IF: CARGO, an experimental puzzle game that uses a large language model as a semantic compiler rather than an autonomous game-playing agent. Players author IF/THEN rules in natural language, which the model translates into a constrained command schema for deterministic validation and execution by the game engine. This architecture creates a playable loop of expression, execution, observation, and revision, framing AI interaction as semantic debugging. A mixed-methods playtest with 24 participants across eight levels examined player attempts, thinking time, perceived controllability, adjustability, and interpretations of the AI's role. Results suggest that players generally understood the model as a translation intermediary and could revise their strategies through feedback, while periodic commands, multi-robot coordination, and rule-priority mechanics created greater cognitive and diagnostic demands. The study proposes a practical pattern for AI-native gameplay: constrain natural-language input, preserve player authorship, and ensure deterministic execution.

References (13)