public int totalScore; // Total score for all forks. public TeamAssignment(RelayVariations relayVariations) { outer = relayVariations; legAssignForFork = new Dictionary <Fork, LegAssignmentForOneFork>(); foreach (Fork fork in outer.allForks) { legAssignForFork[fork] = new LegAssignmentForOneFork(); } }
public List <int[]> branchForLeg = new List <int[]>(); // branchForLeg[leg] = branch index 0..numBranches-1 public override bool Equals(object obj) { LegAssignmentForOneFork other = obj as LegAssignmentForOneFork; if (other == null) { return(false); } if (other.branchForLeg.Count != branchForLeg.Count) { return(false); } for (int i = 0; i < branchForLeg.Count; ++i) { if (!Util.ArrayEquals(other.branchForLeg[i], branchForLeg[i])) { return(false); } } return(true); }
public TeamAssignment(RelayVariations relayVariations) { outer = relayVariations; legAssignForFork = new Dictionary<Fork, LegAssignmentForOneFork>(); foreach (Fork fork in outer.allForks) { legAssignForFork[fork] = new LegAssignmentForOneFork(); } }