Constants for the side to move or the color of a piece.
You can get the opposite color using not color.
and so on to
chess.square
chess.square_file
chess.square_rank
chess.square_distance
chess.square_mirror
chess.Piece
chess.Move
chess.STARTING_FEN
chess.STARTING_BOARD_FEN
chess.Board
chess.BaseBoard
chess.SquareSet
Common integer masks are:
Single squares:
Ranks and files:
Other masks: