예제 #1
0
파일: Form2.cs 프로젝트: AndrewMaz/IZ_OOP
        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);
        }
예제 #2
0
 public void reset()
 {
     stable = new Stable();
 }