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); }
public void reset() { stable = new Stable(); }