Chess fix

This commit is contained in:
Dejvino 2025-12-23 14:03:21 +01:00
parent 085f5dab57
commit 4d1399ec9b

View File

@ -48,7 +48,6 @@ class ChessPuzzleJob(Job):
if board.is_checkmate():
# Found a puzzle!
board.pop() # Revert to state before mate
board.pop()
solution = board.san(move)
turn = "Bily" if board.turn == chess.WHITE else "Cerny"
return board.fen(), f"{turn} na tahu. Mat jednim tahem.", solution