Exemplo n.º 1
0
        public Population(int numberOfDots, Point goal, int generation)
        {
            _dots = DotsFactory.GetDots(numberOfDots, goal);

            _startOfIteration = DateTime.Now;
            _generation       = generation;
        }
Exemplo n.º 2
0
 public void Save()
 {
     PopulationFactory.Save(_generation);
     DotsFactory.SaveDirection(_dots.OrderByDescending(dot => dot.FitnessScore).Select(dot => dot.GetDirection()));
 }