Move
Represents a single player's move on the board. It does not store information about the origin position, as its primary purpose is move representation. Its string representation is the full algebraic notation of the move as used in the UCI protocol (e.g., "e2e4", "a7a8q"). It is immutable.
This class leverages bitwise operations for efficient storage and manipulation.
Since
1.0.0-beta.1
Author
lunalobos
Properties
Link copied to clipboard
The ordinal value of the promotion piece, or -1 if no promotion occurs. The ordinal corresponds to the Piece enum.
Functions
Link copied to clipboard
Returns the promotion piece of the move as a Piece enum constant. Returns Piece.EMPTY if no promotion occurs.