promotion Piece
Returns the promotion piece of the move as a Piece enum constant. Returns Piece.EMPTY if no promotion occurs.
Return
The Piece being promoted to, or Piece.EMPTY.
Since
1.0.0-beta.1
The ordinal value of the promotion piece, or -1 if no promotion occurs. The ordinal corresponds to the Piece enum.