Ejemplo n.º 1
0
        public object Clone()
        {
            var boardMove = new BoardMove(From, To, MoveType);

            boardMove.ExtraData = ExtraData;
            return(boardMove);
        }
Ejemplo n.º 2
0
        protected bool Equals(BoardMove other)
        {
            return(Equals(From, other.From) &&
                   Equals(To, other.To) &&
                   MoveType.Equals(other.MoveType)
//                   && (
//                       MoveType != MoveType.PawnPromotion
//                       || Equals(ExtraData, other.ExtraData)
//                       )
                   );
        }