Skip to content

Commit

Permalink
Update eval.py
Browse files Browse the repository at this point in the history
Fixed bug
  • Loading branch information
42-AH authored Jul 4, 2024
1 parent fd08da8 commit 8aed5a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def evaluate(board, maximizing):
outcome = board.outcome()
if outcome:
return -9999 if board.turn else 9999
if board.is_stalemate() or board.is_insufficient_material() or board.is_fivefold_repetition() or board.can_claim_threefold_repetition():
if board.is_stalemate() or board.is_insufficient_material() or board.is_fivefold_repetition():
return 0

piece_values = {
Expand Down

0 comments on commit 8aed5a9

Please sign in to comment.