public override int GetHashCode() { List<XYLocation> locs = getQueenPositions(); int result = 17; foreach (XYLocation loc in locs) { result = 37 * loc.GetHashCode(); } return result; }