Esempio n. 1
0
        private List <Horse> findForsestHorsesFromStable(Stable stable, int countHorses)
        {
            List <Horse> horsesRes = new List <Horse>();

            Horse[] horsesInStable = stable.horsers;

            Array.Sort(horsesInStable);

            for (int i = 0; i < countHorses; i++)
            {
                horsesRes.Add(horsesInStable[i]);
            }

            return(horsesRes);
        }
Esempio n. 2
0
 public void reset()
 {
     stable = new Stable();
 }