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

Return to game if engine makes bad move #1057

Merged

Conversation

MarkZH
Copy link
Collaborator

@MarkZH MarkZH commented Dec 19, 2024

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

If an engine picks a bad move (i.e., illegal or invalid), then the game is aborted or the engine resigns. In either case, the program should return to the play_game() function to await the next message from lichess.

Related Issues:

#1053. This may or may not fix the problem there, but it may lead to a more graceful shutdown of engines after an illegal/invalid move.

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

N/A

If an engine picks a bad move (i.e., illegal or invalid), then the game
is aborted or the engine resigns. In either case, the program should
return to the play_game() function to await the next message from
lichess.
@AttackingOrDefending AttackingOrDefending merged commit d51e5a4 into lichess-bot-devs:master Dec 19, 2024
23 checks passed
@MarkZH MarkZH deleted the illegal-move-behavior branch December 20, 2024 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants