private void IntToMove() { int mask = 255; byte i = (byte)(mask & SerializedMove); mask <<= 8; byte x = (byte)((mask & SerializedMove) >> 8); mask <<= 8; byte y = (byte)((mask & SerializedMove) >> 16); mask <<= 8; byte v = (byte)((mask & SerializedMove) >> 24); _Piece = Pieces.GetImmutablePieces()[i - 1]; _Position = new PiecePosition(x, y); _VariantNumber = v; }
public Hand() { HandPieces = Pieces.GetAllPieces(); }