private Dot(StartPoint start, Brain brain) { Brain = brain; Position = new Point(start.Position.X, start.Position.Y); _velocity = new Vector(0, 0); _acceleration = new Vector(0, 0); _start = start; }
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 Dot(StartPoint start) : this(start, new Brain(1000)) { }