Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            TblMove move = (TblMove)obj;

            return(move.MoveNumber == MoveNumber && move.Row == Row && move.Col == Col);
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            TblGame game = (TblGame)obj;

            return(WinnerPlayerNumber == game.WinnerPlayerNumber && TblMove.SequenceEqual(game.TblMove));
        }