蒙特卡洛树搜索 棋
With the COVID-19 pandemic still wreaking havoc around the world, many of us have been stuck at home with shelter-in-place orders. In Singapore, similar “circuit breaker” orders have been given. When I was in Singapore and my family were still in the USA, we tried to find activities that we could do together online. Being fans of board games, we decided to play board games online. We primarily used board game arena to host and play board games, especially those that our daughter could also play.
由于COVID-19大流行仍在世界范围内造成严重破坏,我们中的许多人都被就地庇护所困在家里。 在新加坡,已经发出了类似的“ 断路器 ”命令。 当我在新加坡,而我的家人仍在美国时,我们试图找到可以一起在线进行的活动。 作为棋盘游戏的粉丝,我们决定在线玩棋盘游戏。 我们主要使用棋盘游戏平台来主持和玩棋盘游戏,尤其是那些我们女儿也可以玩的棋盘游戏。
The three of us played a variety of board games, such as Sushi Go!, Color Pop, Buttons, and Battle Sheep. When my daughter was occupied with other activities, my spouse and I would sometimes play those games, and others like 7 Wonders and Reversi. Unfortunately, all of these games are competitive in nature, and it was difficult to find a cooperative board game that we could play online — we had previously played games like Pandemic and Forbidden Island at Sunny Pair’O’Dice, a local board game store, but we couldn’t find a good co-op board game to play online.
我们三个人玩过各种棋盘游戏,例如Sushi Go!。 , 流行色 , 按钮和战羊 。 当我的女儿忙于其他活动时,我和我的配偶有时会玩这些游戏,还有7 Wonders and Reversi等其他游戏。 不幸的是,所有这些游戏本质上都是竞争性的,很难找到可以在线玩的合作棋盘游戏-我们以前在当地的桌游商店Sunny Pair'O'Dice玩过Pandemic和Forbidden Island之类的 游戏。 ,但我们找不到能在网上玩的不错的合作棋盘游戏。
When it comes to Reversi, my spouse is undeniably better than me. If I’m lucky, I win maybe 1 in 5 games. So, I decided to write an algorithm to play the game for me! Firstly, I thought that it probably wouldn’t be too difficult for the algorithm to win against me, and then if it wins against my spouse, then technically, I wrote the algorithm so I can treat it that I won against my spouse too.