Skip to content

Latest commit

 

History

History
246 lines (158 loc) · 5.46 KB

core.rst

File metadata and controls

246 lines (158 loc) · 5.46 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

Squares

and so on to

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

Square sets

chess.SquareSet

Common integer masks are:

Single squares:

Ranks and files:

Other masks: