fixed eval.py end_game function

This commit is contained in:
2024-01-23 20:11:59 +01:00
parent b386a41b4b
commit 16d7c538d6
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
/stockfish/ /stockfish/
.idea

View File

@@ -116,7 +116,7 @@ def check_endgame(board: chess.Board) -> bool:
minors_white = 0 minors_white = 0
queens_black = 0 queens_black = 0
minors_black = 0 minors_black = 0
for s in chess.Square: for s in chess.SQUARES:
piece = board.piece_at(s) piece = board.piece_at(s)
if piece is None: if piece is None:
continue continue