makePiece function
Implementation
int makePiece(
int piece,
int colour, {
int internalType = 0,
bool initialState = false,
int flags = 0,
}) =>
(flags << Bishop.flagsStartBit) +
(initialState ? 1 << Bishop.initialStateBit : 0) +
(internalType << 10) +
(piece << 2) +
colour;