Automated Generation and Evaluation of Interactive-Fiction Serious Games with Open-Weight LLMs
Source abstract
Abstract
This work investigates whether open-weight large language models can automatically generate runnable and educationally faithful serious games in a constrained, text-only interactive-fiction (IF) setting. The target games are station-based single-player serious games for knowledge assessment, implemented as IF in a structured, machine-readable text format, and used here as a first step towards later ambient scenarios. A fully automated pipeline called SINE (Serious Interactive Narrative Engine) is evaluated with four prompting strategies, grammar-guided decoding, deterministic validation, and a repair agent. Across a staged evaluation with 240 seeds and increasing complexity, finalist configurations reach success rates between roughly 68% and 86% on the joint criterion of compilation, playability, and learning-goal fidelity. Repair iterations proved central to robustness, whereas grammar masking on top of reasoning prompts did not consistently improve outcomes. The study provides a reproducible benchmark setup, open artifacts, and a constrained generation pipeline as a basis for later extensions toward broader serious game scenarios.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Artificial Intelligence in Games · Educational Games and Gamification · Digital Games and Media
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Institute of Telematics, University of Lübeck, 23562 Lübeck, Germany
Funding
Stiftung Innovation in der Hochschullehre
References (70)
Show source-provided references
1. Identifying Key Principles and Commonalities in Digital Serious Game Design Frameworks: Scoping Review10.2196/54075 ↗
2. AI as a Co-creator: A Survey on AI Support for Educational Game Authoring Tools
3. Humble, N. (2024, January 5–6). Play My Thesis: Opportunities and Limitations of Building Serious Games with AI. Proceedings of the International Conference on AI Research, Lisbon, Portugal.10.34190/icair.4.1.3130 ↗
4. Brandl, L.C., and Schrader, A. (2025). Realizing Ambient Serious Games in Higher Education—Concept and Heuristic Evaluation. Trends High. Educ., 4.10.3390/higheredu4030052 ↗
5. Gallotta, R., Todd, G., Zammit, M., Earle, S., Liapis, A., Togelius, J., and Yannakakis, G.N. (2024). Large Language Models and Games: A Survey and Roadmap. IEEE Trans. Games, 1–18.10.1109/TG.2024.3461510 ↗
6. Evolutionary game design10.1109/TCIAIG.2010.2041928 ↗
7. Summerville, A., Martens, C., Samuel, B., Osborn, J., Wardrip-Fruin, N., and Mateas, M. (2018, January 2–7). Gemini: Bidirectional generation and analysis of games via ASP. Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), New Orleans, LA, USA.10.1609/aiide.v14i1.13013 ↗
8. Khalifa, A., Green, M.C., Perez-Liebana, D., and Togelius, J. (2017, January 22–25). General video game rule generation. Proceedings of the IEEE Conference on Computational Intelligence and Games (CIG), New York, NY, USA.10.1109/CIG.2017.8080431 ↗
9. Maurer, T., and Guzdial, M. (2021, January 3–6). Adversarial random forest classifier for automated game design. Proceedings of the Foundations of Digital Games (FDG), Montreal, QC, Canada.10.1145/3472538.3472587 ↗
10. Conceptual game expansion10.1109/TG.2021.3060005 ↗
11. Todd, G., Earle, S., Nasir, M.U., Green, M.C., and Togelius, J. (2023, January 12–14). Level generation through large language models. Proceedings of the Foundations of Digital Games (FDG), Lisbon, Portugal.10.1145/3582437.3587211 ↗
12. Sudhakaran, S., González-Duque, M., Freiberger, M., Glanois, C., Najarro, E., and Risi, S. (2023, January 10–16). MarioGPT: Open-ended text2level generation through large language models. Proceedings of the NeurIPS, New Orleans, LA, USA.
13. Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020, January 6–12). Language models are few-shot learners. Proceedings of the NeurIPS, Vancouver, BC, Canada.
14. Pre-Train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing
15. Yang, D., Kleinman, E., and Harteveld, C. (2024). GPT for Games: An Updated Scoping Review (2020–2024). arXiv.10.1109/TG.2025.3563780 ↗
16. Zhou, E., Basavatia, S., Siam, M., Chen, Z., and Riedl, M.O. (2025). STORY2GAME: Generating (Almost) Everything in an Interactive Fiction Game. arXiv.
17. Nasir, M.U., James, S., and Togelius, J. (2024). Word2world: Generating stories and worlds through large language models. arXiv.
18. Schaul, T. (2013). A Video Game Description Language for Model-Based or Interactive Learning. Proceedings of the 2013 IEEE Conference on Computational Inteligence in Games (CIG), IEEE.10.1109/CIG.2013.6633610 ↗
19. Hu, C., Zhao, Y., and Liu, J. (2024). Game generation via large language models. Proceedings of the 2024 IEEE Conference on Games (CoG), IEEE.10.1109/CoG60054.2024.10645597 ↗
20. Grammar-based Game Description Generation using Large Language Models10.1109/TG.2024.3520214 ↗
21. Ludii—The Ludemic General Game System
22. Anjum, A., Li, Y., Law, N., Charity, M., and Togelius, J. (2024). The Ink Splotch Effect: A Case Study on ChatGPT as a Co-Creative Game Designer. Proceedings of the 19th International Conference on the Foundations of Digital Games, Association for Computing Machinery. FDG ‘24.10.1145/3649921.3650010 ↗
23. Lanzi, P.L., and Loiacono, D. (2023). ChatGPT and Other Large Language Models as Evolutionary Engines for Online Interactive Collaborative Game Design. Proceedings of the Genetic and Evolutionary Computation Conference, ACM.10.1145/3583131.3590351 ↗
24. Bringing Stories Alive: Generating Interactive Fiction Worlds
25. Language as Reality: A Co-Creative Storytelling Game Experience in 1001 Nights Using Generative AI
26. Large Language Models as Narrative Planning Search Guides10.1109/TG.2024.3487416 ↗
27. Van Stegeren, J., and Myśliwiec, J. (2021). Fine-Tuning GPT-2 on Annotated RPG Quests for NPC Dialogue Generation. Proceedings of the 16th International Conference on the Foundations of Digital Games (FDG) 2021, ACM.10.1145/3472538.3472595 ↗
28. Ashby, T., Webb, B.K., Knapp, G., Searle, J., and Fulda, N. (2023). Personalized Quest and Dialogue Generation in Role-Playing Games: A Knowledge Graph- and Language Model-based Approach. Proceedings of the 2023 CHI Conference on Human Factors in Computing Systems, ACM.10.1145/3544548.3581441 ↗
29. Al-Nassar, S., Schaap, A., Zwart, M.V.D., Preuss, M., and Gómez-Maureira, M.A. (2023). QuestVille: Procedural Quest Generation Using NLP Models. Proceedings of the 18th International Conference on the Foundations of Digital Games, ACM.10.1145/3582437.3587188 ↗
30. PANGeA: Procedural artificial narrative using generative AI for turn-based, role-playing video games
31. Torii, M.G., Murakami, T., and Ochiai, Y. (2023). Lottery and Sprint: Generate a Board Game with Design Sprint Method on AutoGPT. Proceedings of the CHI PLAY Companion, ACM.10.1145/3573382.3623706 ↗
32. Tanaka, T., and Simo-Serra, E. (2025, January 26–29). Grammar and Gameplay-aligned RL for Game Description Generation with LLMs. Proceedings of the IEEE 2025 Conference on Games (CoG 2025), Lisbon, Portugal.10.1109/CoG64752.2025.11114202 ↗
33. A systematic literature review of empirical evidence on computer games and serious games10.1016/j.compedu.2012.03.004 ↗
34. An Overview of Serious Games10.1155/2014/358152 ↗
35. Interactive Narrative: An Intelligent Systems Approach
36. Digital Storytelling: A Powerful Technology Tool for the 21st Century Classroom10.1080/00405840802153916 ↗
37. Automatic Story Generation: A Survey of Approaches10.1145/3453156 ↗
38. Hargood, C., Weal, M.J., and Millard, D.E. (2018). The StoryPlaces Platform: Building a Web-Based Locative Hypertext System. Proceedings of the 29th on Hypertext and Social Media, ACM.10.1145/3209542.3209559 ↗
39. Narralive—Creating and experiencing mobile digital storytelling in cultural heritage
40. A Survey on Computational and Emergent Digital Storytelling10.3390/heritage6020068 ↗
41. Leaving the Small Screen: Telling News Stories in a VR Simulation of an AR News Service
42. Languages of Games and Play: A Systematic Mapping Study
43. General Game Playing: Overview of the AAAI Competition
44. Regular Boardgames
45. Studios, I. (2025, May 20). Ink—Inkle’s Narrative Scripting Language. Available online: https://www.inklestudios.com/ink/.
46. Baker, S. (2021). Choose your own educational resource: Developing an interactive OER using the ink scripting language. Code4Lib J., 51, Available online: https://journal.code4lib.org/articles/15721.
47. Rogosch, F., and Schrader, A. (SINE Paper Companion Software and Data Release, 2026). SINE Paper Companion Software and Data Release, Version 1.0.0.
48. (2025, December 16). Ggml-Org/Llama.Cpp. Available online: https://github.com/ggml-org/llama.cpp.
49. (2026, January 13). Unsloth Model Catalog | Unsloth Documentation. Available online: https://unsloth.ai/docs/get-started/unsloth-model-catalog.
50. (2025, December 16). Ggml/Docs/Gguf.Md at Master · Ggml-Org/Ggml. Available online: https://github.com/ggml-org/ggml/blob/master/docs/gguf.md.
51. (2026, February 16). Hugging Face. The Model Hub. Available online: https://huggingface.co/docs/hub/en/models-the-hub.
52. (2025, December 16). Unsloth AI—Open Source Fine-Tuning & RL for LLMs. Available online: https://unsloth.ai/.
53. OpenAI (2025). gpt-oss-120b & gpt-oss-20b Model Card. arXiv.
54. IBM Research (2026, February 13). Granite 4.0 Language Models. Available online: https://github.com/ibm-granite/granite-4.0-language-models.
55. Abdin, M., Aneja, J., Behl, H., Bubeck, S., Eldan, R., Gunasekar, S., Harrison, M., Hewett, R.J., Javaheripi, M., and Kauffmann, P. (2024). Phi-4 Technical Report. arXiv.
56. DeepSeek-AI (2024). DeepSeek-V3 Technical Report. arXiv.
57. Team, G., Kamath, A., Ferret, J., Pathak, S., Vieillard, N., Merhej, R., Perrin, S., Matejovicova, T., Ramé, A., and Rivière, M. (2025). Gemma 3 Technical Report. arXiv.
58. Meta (2025, May 20). Llama 3. Available online: https://www.llama.com/models/llama-3/.
59. QwenTeam (2026, February 13). Qwen3. Available online: https://qwenlm.github.io/blog/qwen3/.
60. Mistral-AI, Rastogi, A., Jiang, A.Q., Lo, A., Berrada, G., Lample, G., Rute, J., Barmentlo, J., Yadav, K., and Khandelwal, K. (2025). Magistral. arXiv.
61. A Survey on Model Compression for Large Language Models10.1162/tacl_a_00704 ↗
62. Leandro, J., Rao, S., Xu, M., Xu, W., Jojic, N., Brockett, C.J., and Dolan, W.B. (2024, January 5–8). GENEVA: GENErating and Visualizing branching narratives using LLMs. Proceedings of the 2024 IEEE Conference on Games (CoG), Milan, Italy.10.1109/CoG60054.2024.10645625 ↗
63. Sun, Y., Wang, P.J., Chung, J.J.Y., Roemmele, M., Kim, T., and Kreminski, M. (2025). Drama Llama: An LLM-Powered Storylets Framework for Authorable Responsiveness in Interactive Narrative. arXiv.
64. Netz, L., Reimer, J., and Rumpe, B. (2024). Using Grammar Masking to Ensure Syntactic Validity in LLM-based Modeling Tasks. Proceedings of the ACM/IEEE 27th International Conference on Model Driven Engineering Languages and Systems, ACM. MODELS Companion ‘24.10.1145/3652620.3687805 ↗
65. When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMs10.1162/tacl_a_00713 ↗
66. Objective Metrics for Interactive Narrative
67. A Survey on Evaluation of Large Language Models10.1145/3641289 ↗
68. Wang, Q., Wang, M., Feldhus, N., Ostermann, S., Cao, Y., Schütze, H., Möller, S., and Schmitt, V. (2026). Through a Compressed Lens: Investigating The Impact of Quantization on Factual Knowledge Recall. arXiv.
69. Exploring the Impact of Temperature on Large Language Models: Hot or Cold?10.1016/j.procs.2025.07.135 ↗
70. Mapping learning and game mechanics for serious games analysis10.1111/bjet.12113 ↗