Elio Valenzuela , Hans Schaa , Nicolas A. Barriga , Gustavo Patow
{"title":"使用搜索算法统计评估迷宫和谜题难度","authors":"Elio Valenzuela , Hans Schaa , Nicolas A. Barriga , Gustavo Patow","doi":"10.1016/j.entcom.2025.100925","DOIUrl":null,"url":null,"abstract":"<div><div>A video game’s difficulty has a large impact on player engagement. For instance, it is crucial in some genres to give the players a challenge difficult enough without frustrating them. We propose a simple method for assessing game-level difficulty as a precursor to adapting it to a specific player. In particular, we propose using simple performance metrics of algorithms such as <span><math><msup><mrow><mi>A</mi></mrow><mrow><mo>∗</mo></mrow></msup></math></span> and Breadth-First Search (BFS) as a proxy for the difficulty of puzzles. We performed user studies using a 2D maze simulator and a Sokoban game implementation; both built into the Unity game engine. We show that, for 2D mazes generated by Binary Space Partitioning, the number of nodes expanded by BFS highly correlates with the number of steps a human player takes to reach the goal. For Sokoban puzzles, the closed list length of an A* search is highly correlated to perceived difficulty and the number of movements a human player takes to solve the puzzle. These results show that simple metrics are probably good enough to assess a given level’s difficulty, which is a first step towards being able to personalize the difficulty of a maze or a puzzle to a particular player.</div></div>","PeriodicalId":55997,"journal":{"name":"Entertainment Computing","volume":"53 ","pages":"Article 100925"},"PeriodicalIF":2.8000,"publicationDate":"2025-02-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Using search algorithm statistics for assessing maze and puzzle difficulty\",\"authors\":\"Elio Valenzuela , Hans Schaa , Nicolas A. Barriga , Gustavo Patow\",\"doi\":\"10.1016/j.entcom.2025.100925\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>A video game’s difficulty has a large impact on player engagement. For instance, it is crucial in some genres to give the players a challenge difficult enough without frustrating them. We propose a simple method for assessing game-level difficulty as a precursor to adapting it to a specific player. In particular, we propose using simple performance metrics of algorithms such as <span><math><msup><mrow><mi>A</mi></mrow><mrow><mo>∗</mo></mrow></msup></math></span> and Breadth-First Search (BFS) as a proxy for the difficulty of puzzles. We performed user studies using a 2D maze simulator and a Sokoban game implementation; both built into the Unity game engine. We show that, for 2D mazes generated by Binary Space Partitioning, the number of nodes expanded by BFS highly correlates with the number of steps a human player takes to reach the goal. For Sokoban puzzles, the closed list length of an A* search is highly correlated to perceived difficulty and the number of movements a human player takes to solve the puzzle. These results show that simple metrics are probably good enough to assess a given level’s difficulty, which is a first step towards being able to personalize the difficulty of a maze or a puzzle to a particular player.</div></div>\",\"PeriodicalId\":55997,\"journal\":{\"name\":\"Entertainment Computing\",\"volume\":\"53 \",\"pages\":\"Article 100925\"},\"PeriodicalIF\":2.8000,\"publicationDate\":\"2025-02-15\",\"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/S1875952125000059\",\"RegionNum\":3,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"COMPUTER SCIENCE, CYBERNETICS\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Entertainment Computing","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1875952125000059","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, CYBERNETICS","Score":null,"Total":0}
Using search algorithm statistics for assessing maze and puzzle difficulty
A video game’s difficulty has a large impact on player engagement. For instance, it is crucial in some genres to give the players a challenge difficult enough without frustrating them. We propose a simple method for assessing game-level difficulty as a precursor to adapting it to a specific player. In particular, we propose using simple performance metrics of algorithms such as and Breadth-First Search (BFS) as a proxy for the difficulty of puzzles. We performed user studies using a 2D maze simulator and a Sokoban game implementation; both built into the Unity game engine. We show that, for 2D mazes generated by Binary Space Partitioning, the number of nodes expanded by BFS highly correlates with the number of steps a human player takes to reach the goal. For Sokoban puzzles, the closed list length of an A* search is highly correlated to perceived difficulty and the number of movements a human player takes to solve the puzzle. These results show that simple metrics are probably good enough to assess a given level’s difficulty, which is a first step towards being able to personalize the difficulty of a maze or a puzzle to a particular player.
期刊介绍:
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.