Chess fix
This commit is contained in:
parent
085f5dab57
commit
4d1399ec9b
@ -48,7 +48,6 @@ class ChessPuzzleJob(Job):
|
|||||||
if board.is_checkmate():
|
if board.is_checkmate():
|
||||||
# Found a puzzle!
|
# Found a puzzle!
|
||||||
board.pop() # Revert to state before mate
|
board.pop() # Revert to state before mate
|
||||||
board.pop()
|
|
||||||
solution = board.san(move)
|
solution = board.san(move)
|
||||||
turn = "Bily" if board.turn == chess.WHITE else "Cerny"
|
turn = "Bily" if board.turn == chess.WHITE else "Cerny"
|
||||||
return board.fen(), f"{turn} na tahu. Mat jednim tahem.", solution
|
return board.fen(), f"{turn} na tahu. Mat jednim tahem.", solution
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user