Function promotePiece

  • Return a piece instance promoted to another piece type.

    Returns

    a new piece insatance

    Parameters

    • piece: TPiece
    • type: number

      a new piece type id

    Returns TPiece

Generated using TypeDoc