TTitcombe / AlphaDraughts

A PyTorch implementation of AlphaGo Zero applied to Draughts
MIT License
3 stars 2 forks source link

Stalemates are not determined #24

Closed TTitcombe closed 5 years ago

TTitcombe commented 5 years ago

The game does not calculate if a stalemate has occurred. This can lead to infinite play.

To replicate: Play a random bot against a random bot, using the following script

from alphadraughts import Game, RandomBot

game = Game(white=RandomBot(), black=RandomBot())
game.play()

There may be a breakthrough, but most of the time the game will continue indefinitely (stalemates occur frequently because of #23 - pieces block the middle which leaves the remaining pieces and kings to wander about aimlessly)