Skip to content

Commit 2022b7e

Browse files
committed
Pass claim_draw=True to is_game_over()
is_game_over() does not check for 50-move rule or 3-fold repetition unless claim_draw=True is passed
1 parent a2adee7 commit 2022b7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

annotator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def truncate_pv(board, pv):
268268
assert board.is_legal(move)
269269
board.push(move)
270270

271-
if board.is_game_over():
271+
if board.is_game_over(claim_draw=True):
272272
return pv
273273
else:
274274
return pv[:10]

0 commit comments

Comments
 (0)