promotionTo property
If the piece moved is Pawn
and it has reached last rank, then this field
holds information to what Piece
it was promoted.
Implementation
final Piece? promotionTo;
If the piece moved is Pawn
and it has reached last rank, then this field
holds information to what Piece
it was promoted.
final Piece? promotionTo;