Skip to content

Commit

Permalink
Fix edge case in which we mate from online EGTB with 8 pieces on the …
Browse files Browse the repository at this point in the history
…board and a legal capture
  • Loading branch information
Torom committed Oct 20, 2024
1 parent 9f7ccac commit 286c130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lichess_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ async def _make_egtb_move(self) -> Move_Response | None:
return

uci_move: str = response['moves'][0]['uci']
dtz: int = -response['moves'][0]['dtz']
dtz: int = response['dtz']
dtm: int | None = response['dtm']
offer_draw = outcome in ['draw', 'blessed loss']
resign = outcome == 'loss'
Expand Down

0 comments on commit 286c130

Please sign in to comment.