|
|
|
|
98
|
raise NoPheromone()
|
98
|
raise NoPheromone()
|
99
|
|
99
|
|
100
|
shuffle(arround_pheromones_points)
|
100
|
shuffle(arround_pheromones_points)
|
101
|
- arround_pheromones_sorted = sorted(arround_pheromones_points, key=lambda x: x[1][1])
|
|
|
|
|
101
|
+ arround_pheromones_sorted = sorted(arround_pheromones_points, key=lambda x: x[1][1], reverse=True)
|
102
|
go_to_point = arround_pheromones_sorted[0][0]
|
102
|
go_to_point = arround_pheromones_sorted[0][0]
|
103
|
|
103
|
|
104
|
direction_degrees = get_degree_from_north(reference_point, go_to_point)
|
104
|
direction_degrees = get_degree_from_north(reference_point, go_to_point)
|