Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stalemates are not determined #24

Closed
TTitcombe opened this issue Sep 5, 2019 · 0 comments · Fixed by #26
Closed

Stalemates are not determined #24

TTitcombe opened this issue Sep 5, 2019 · 0 comments · Fixed by #26
Labels
bug Something isn't working draughts
Milestone

Comments

@TTitcombe
Copy link
Owner

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)

@TTitcombe TTitcombe added bug Something isn't working draughts labels Sep 5, 2019
@TTitcombe TTitcombe added this to the Draughts Game milestone Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working draughts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant