Just downloaded the Python-Chess module and wanted to test it out; whenever I check the board state by using board.is_checkmate
, board.is_stalemate
, board.is_check
, board.is_en_passant
and a print statement, it always returns true.
I'm using VSCode on macOS 11.3. Python version is 3.8.2.
import chess
board = chess.Board()
if board.is_checkmate:
print("game over")