Converts the internal representation of the gates to a list of piece symbols (e.g. 'P', 'q').
You probably need this for interopability with other applications (such as the Squares package).
Converts the internal representation of the hands to a list of piece symbols (e.g. 'P', 'q').
You probably need this for interopability with other applications (such as the Squares package).
Converts the internal board representation to a list of piece symbols (e.g. 'P', 'q').
You probably need this for interopability with other applications (such as the Squares package).
To be used in cases where, given a piece and a destination, there is more than
one possible move. For example, in 'Nbxa4', this function provides the 'b'.
Optionally, provide moves - a list of legal moves. This will be generated
if it is not specified.
Gets a move from a SAN string, e.g. 'Nxf3', 'e4', 'O-O-O'.
If checks is false, the '+' or '#' part of the SAN string will not be
computed, which vastly increases efficiency in cases like PGN parsing.\
Returns the SAN (Standard Algebraic Notation) representation of a move.
Optionally, provide moves - a list of legal moves in the current position, which
is used to determine the disambiguator. Use this if you need speed and have already
generated the list of moves elsewhere.
If checks is false, the '+' or '#' part of the SAN string will not be
computed, which vastly increases efficiency in cases like PGN parsing.