Skip to content

Latest commit

 

History

History
169 lines (119 loc) · 3.08 KB

core.rst

File metadata and controls

169 lines (119 loc) · 3.08 KB

Core

Colors

Constants for the side to move or the color of a piece.

You can get the opposite color using not color.

Piece types

chess.piece_symbol

chess.piece_name

Squares

and so on to

chess.parse_square

chess.square_name

chess.square

chess.square_file

chess.square_rank

chess.square_distance

chess.square_mirror

Pieces

chess.Piece

Moves

chess.Move

Board

chess.STARTING_FEN

chess.STARTING_BOARD_FEN

chess.Board

chess.BaseBoard

Outcome

chess.Outcome

chess.Termination

Square sets

chess.SquareSet

Common integer masks are:

Single squares:

Ranks and files:

Other masks: