The Complexities of Random-Turn Hex, Square, and Triangle Games
Yi Yang,Shuigeng Zhou,Jihong Guan,Chuansheng Shen
DOI: https://doi.org/10.1109/tg.2020.3033720
IF: 1.237
2022-01-01
IEEE Transactions on Games
Abstract:In random-turn games, players toss a coin to decide who moves. This article studies the complexities of the algorithms for playing random-turn connection games perfectly on regular tessellations. Our study theoretically shows that there are algorithms playing random-turn hex, square, and triangle perfectly in O(n(9) . 2.618(n)), O(n(9) . 2.746(n)), andO(n(9) . 3.645(n)) time for each move, respectively, where n is the board size. We then implement the perfect-playing algorithm for the random-turn square andmeasure the actual running time it costs for eachmove. We then compute and analyze the game lengths on random-turn square, hex, and triangle and conjecture that the asymptotic complexity of their game lengths are the same. We finally compare the perfect-playing algorithm with the sampling algorithm by competing against each other, and the numbers of their wins and losses are reported.