{"title":"Icepool:骰子池概率的有效计算","authors":"A. Liu","doi":"10.1609/aiide.v18i1.21971","DOIUrl":null,"url":null,"abstract":"Mechanics involving the roll of multiple dice---a \"dice pool\"---commonly appear in tabletop board games and role-playing games. Existing general-purpose dice pool probability calculators resort to exhaustive enumeration of all possible sorted sequences of rolls, which can quickly become computationally intractable. We propose a dynamic programming algorithm that can efficiently compute probabilities for a wide variety of dice pool mechanics while limiting the need for bespoke optimization. We also present Icepool, a pure Python implementation of the algorithm combined with a library of common dice operations.","PeriodicalId":92576,"journal":{"name":"Proceedings. AAAI Artificial Intelligence and Interactive Digital Entertainment Conference","volume":"22 1","pages":"258-265"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Icepool: Efficient Computation of Dice Pool Probabilities\",\"authors\":\"A. Liu\",\"doi\":\"10.1609/aiide.v18i1.21971\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Mechanics involving the roll of multiple dice---a \\\"dice pool\\\"---commonly appear in tabletop board games and role-playing games. Existing general-purpose dice pool probability calculators resort to exhaustive enumeration of all possible sorted sequences of rolls, which can quickly become computationally intractable. We propose a dynamic programming algorithm that can efficiently compute probabilities for a wide variety of dice pool mechanics while limiting the need for bespoke optimization. We also present Icepool, a pure Python implementation of the algorithm combined with a library of common dice operations.\",\"PeriodicalId\":92576,\"journal\":{\"name\":\"Proceedings. AAAI Artificial Intelligence and Interactive Digital Entertainment Conference\",\"volume\":\"22 1\",\"pages\":\"258-265\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-10-11\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings. AAAI Artificial Intelligence and Interactive Digital Entertainment Conference\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1609/aiide.v18i1.21971\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings. AAAI Artificial Intelligence and Interactive Digital Entertainment Conference","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1609/aiide.v18i1.21971","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Icepool: Efficient Computation of Dice Pool Probabilities
Mechanics involving the roll of multiple dice---a "dice pool"---commonly appear in tabletop board games and role-playing games. Existing general-purpose dice pool probability calculators resort to exhaustive enumeration of all possible sorted sequences of rolls, which can quickly become computationally intractable. We propose a dynamic programming algorithm that can efficiently compute probabilities for a wide variety of dice pool mechanics while limiting the need for bespoke optimization. We also present Icepool, a pure Python implementation of the algorithm combined with a library of common dice operations.