Beispiel #1
0
        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;
        }
Beispiel #2
0
 public Hand()
 {
     HandPieces = Pieces.GetAllPieces();
 }