예제 #1
0
        public object Clone()
        {
            var boardMove = new BoardMove(From, To, MoveType);

            boardMove.ExtraData = ExtraData;
            return(boardMove);
        }
예제 #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)
//                       )
                   );
        }