Exemplo n.º 1
0
        public MoveContent(MoveContent moveContent)
        {
            MovingPiecePrimary   = new PieceMoving(moveContent.MovingPiecePrimary);
            MovingPieceSecondary = new PieceMoving(moveContent.MovingPieceSecondary);

            TakenPiece = new PieceTaken(moveContent.TakenPiece.PieceColor,
                                        moveContent.TakenPiece.PieceType,
                                        moveContent.TakenPiece.Moved,
                                        moveContent.TakenPiece.Position);

            EnPassantOccured = moveContent.EnPassantOccured;
            PawnPromoted     = moveContent.PawnPromoted;
        }
Exemplo n.º 2
0
 public MoveContent()
 {
     MovingPiecePrimary   = new PieceMoving(ChessPieceType.None);
     MovingPieceSecondary = new PieceMoving(ChessPieceType.None);
     TakenPiece           = new PieceTaken(ChessPieceType.None);
 }