{"title":"Dynamic difficulty adjustment using a large language model: A case study in magic: The Gathering","authors":"Xiaoxu Li , Zifan Ye , Yi Xia , Ruck Thawonmas","doi":"10.1016/j.entcom.2025.100997","DOIUrl":null,"url":null,"abstract":"<div><div>This paper presents a framework called LLM-MTG-DDA, which uses a large language model (LLM) in the real-world card game Magic: The Gathering (MTG) to act as a player and implement a dynamic difficulty adjustment (DDA) mechanism. LLMs, as a highly useful technology, have been explored across various fields. However, research on using LLMs for DDA in games, particularly in complex turn-based games, is very limited. In this paper, GPT-4o acts as two players in a simplified version of MTG. One GPT-4o player plays as a regular player (LLM-Player), while the other GPT-4o player adjusts its strategy based on the current game state to balance the difficulty (LLM-DDA). Our LLM-MTG-DDA framework, with a suitable objectives for different players, demonstrates reasonable DDA, with the LLM-Player’s win rate and the win rate per round (excluding draws) both approaching 50%. This framework provides insights for applying LLMs as DDA mechanisms in other similar games.</div></div>","PeriodicalId":55997,"journal":{"name":"Entertainment Computing","volume":"55 ","pages":"Article 100997"},"PeriodicalIF":2.4000,"publicationDate":"2025-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Entertainment Computing","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1875952125000771","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, CYBERNETICS","Score":null,"Total":0}
引用次数: 0
Abstract
This paper presents a framework called LLM-MTG-DDA, which uses a large language model (LLM) in the real-world card game Magic: The Gathering (MTG) to act as a player and implement a dynamic difficulty adjustment (DDA) mechanism. LLMs, as a highly useful technology, have been explored across various fields. However, research on using LLMs for DDA in games, particularly in complex turn-based games, is very limited. In this paper, GPT-4o acts as two players in a simplified version of MTG. One GPT-4o player plays as a regular player (LLM-Player), while the other GPT-4o player adjusts its strategy based on the current game state to balance the difficulty (LLM-DDA). Our LLM-MTG-DDA framework, with a suitable objectives for different players, demonstrates reasonable DDA, with the LLM-Player’s win rate and the win rate per round (excluding draws) both approaching 50%. This framework provides insights for applying LLMs as DDA mechanisms in other similar games.
期刊介绍:
Entertainment Computing publishes original, peer-reviewed research articles and serves as a forum for stimulating and disseminating innovative research ideas, emerging technologies, empirical investigations, state-of-the-art methods and tools in all aspects of digital entertainment, new media, entertainment computing, gaming, robotics, toys and applications among researchers, engineers, social scientists, artists and practitioners. Theoretical, technical, empirical, survey articles and case studies are all appropriate to the journal.