private SuperfectaSystem MakeACopy() { SuperfectaSystem temp = new SuperfectaSystem(); for (int i = 0; i < _raceSelections.Length; ++i) { for (int j = 0; j < _raceSelections[i].Count; ++j) { temp._raceSelections[i].Add(_raceSelections[i][j]); } } return temp; }
private static SuperfectaSystem Merge(SuperfectaSystem s1, SuperfectaSystem s2) { SuperfectaSystem s = s1.MakeACopy(); for (int i = 0; i < 4; ++i) { s._raceSelections[i].Merge(s2._raceSelections[i]); } return s; }
private int CountIdenticalSelections(SuperfectaSystem other) { int count = 0; for (int i = 0; i < 4; ++i) { if (this[i].Equals(other[i])) { ++count; } } return count; }
public SuperStudioForm(Race race, SuperfectaSystem ss) { _race = race; _ss = ss; InitializeComponent(); }