Exemplo n.º 1
0
        public void Main()
        {
            while (true)
            {
                statisticCollector.CollectData(organism, _environment);
                if (organism.Population <= 1)
                {
                    break;
                }

                _environment.EnvironmentCycle(organism);
                organism.IncreasePopulation(_environment);
                Selection.NaturalSelection(organism, _environment);
                Evolution.Evolute(organism, _environment);
            }
            StatisticCollector.ResetInstance();
        }