Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 0;

            hash = hash * 33 + historySet.GetHashCode();
            hash = hash * 33 + playerSet.GetHashCode();
            hash = hash * 33;
            if (leftDomino != null)
            {
                hash += leftDomino.GetHashCode();
            }
            hash = hash * 33;
            if (rightDomino != null)
            {
                hash += rightDomino.GetHashCode();
            }
            hash = hash * 33;
            if (upperDomino != null)
            {
                hash += upperDomino.GetHashCode();
            }
            hash = hash * 33;
            if (lowerDomino != null)
            {
                hash += lowerDomino.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(chosenDomino.GetHashCode() * 33 + chosenPlace.GetHashCode());
 }