Move
Secondary constructor for moves with promotion specified as a character.
Parameters
from
The starting square.
to
The destination square.
promotion Char
The character representing the promotion piece type.
Secondary constructor for moves specified by string coordinates.
Parameters
from
The starting square in algebraic notation (e.g., "e2").
to
The destination square in algebraic notation (e.g., "e4").
promotion Piece Type
The piece type to promote to, if applicable.