eighthill / Slime_Mold_Simulation

A student project simulating smile mold🧫
MIT License
6 stars 0 forks source link

Class Array for pheromones #9

Closed Isabelle-Gbl closed 10 months ago

Isabelle-Gbl commented 10 months ago

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.

Isabelle-Gbl commented 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.