IF:CARGO: LLM-Based Semantic Compilation for Al-Native Rule Programming Games
Ting-Chen HsuLianye ZhangJiangxu LinZhaoyi YuFei QinZihao Chen
Ting-Chen Hsu
Lianye Zhang
Jiangxu Lin
Zhaoyi Yu
Fei Qin
Zihao Chen
+6
This case study presents IF:CARGO, a puzzle game that uses a large language model as a semantic compiler rather than an autonomous agent: players write IF/THEN rules in natural language, which the model translates into a constrained command schema for deterministic validation and execution by the game engine, creating a playable loop of expression, execution, observation, and revision that frames AI interaction as semantic debugging. A mixed-methods playtest with 24 participants across eight levels examined attempts, thinking time, perceived controllability, adjustability, and interpretations of the AI's role; players generally understood the model as a translation intermediary and revised strategies through feedback, while periodic commands, multi-robot coordination, and rule-priority mechanics raised cognitive and diagnostic demands. The study proposes constraining natural-language input, preserving player authorship, and ensuring deterministic execution as a practical pattern for AI-native gameplay.