//public static int mutationChance; public static void generateOrganisms(int quantity, Species spec) { for (int i = 0; i < quantity; i++) { Organism.generateOrganisms(spec); } }
private void StartSymulacji(object sender, RoutedEventArgs e) { plansza = new Plansza(MyCanvas); Simulation.t1 = new System.Windows.Threading.DispatcherTimer(); Food.generateFood(); for (int i = 0; i < Settings.numberOfSpecies; i++) { Organism.generateOrganisms(Simulation.speciesList[i]); } plansza.rysujPlansze(Simulation.simulationGrid); NT.Visibility = Visibility.Visible; PT.Visibility = Visibility.Hidden; S.Visibility = Visibility.Visible; startSym.Visibility = Visibility.Visible; start.Visibility = Visibility.Hidden; Restart.Visibility = Visibility.Visible; }