예제 #1
0
 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;
 }
예제 #2
0
        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;
        }
예제 #3
0
        private int CountIdenticalSelections(SuperfectaSystem other)
        {
            int count = 0;

            for (int i = 0; i < 4; ++i)
            {
                if (this[i].Equals(other[i]))
                {
                    ++count;
                }
            }

            return count;
        }
예제 #4
0
 public SuperStudioForm(Race race, SuperfectaSystem ss)
 {
     _race = race;
     _ss = ss;
     InitializeComponent();
 }