Closed Isabelle-Gbl closed 10 months ago
There could also be a parameter indicating the amount of pheromones left at the position where an agent was. also an important information here is that the Agents are safed in a list with a dictionary for each agent:
agent_dict = {"int_x_pos": int_x_pos, "int_y_pos": int_y_pos, "float_x_pos": float_x_pos, "float_y_pos": float_y_pos, "movement_angle": movement_angle}
for the array only the coordinates int_x_pos, int_y_pos are relevant. Those will be integers and give the current position of the agent in the array.
Similar as in the TryOut I uploaded, we will need a Class for the array with the pheromones.
it should get passed the parameters x and y as length and width of the array and also a value that tells how fast or slow the pheromones are disapearing in each iteration/after each move
also we need a method that update the values of the pheromones in each field of the array after an interation/move.