public Population(int size, StartPoint start, GoalPoint goal, List <Obstacle> obstacles) { _size = size; _start = start; _goal = goal; _obstacles = obstacles; Dots = new Dot[_size]; for (var i = 0; i < size; i++) { Dots[i] = new Dot(_start); } _score = new PopulationScore(goal, Dots); }
public PopulationScore(GoalPoint goal, Dot[] dots) { _goal = goal; _dots = dots; }