skotz / volcanoes

Prototype for a new board game
4 stars 1 forks source link

Fix MCTS win detection #60

Open skotz opened 3 years ago

skotz commented 3 years ago

There's a critical bug somewhere in the MCTS simulation's win detection. I think it has something to do with detecting the last player to move. Must be getting confused with the alternating turn order interspersed with growth moves.

skotz commented 3 years ago

Maybe in addition to seeing if the state's winner is the last player to actively move, it should also consider both growth moves. So if blue won, then a win is recorded for the node if it's for the player who just placed a piece or the result of either growth move.