eighthill / Slime_Mold_Simulation

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

Class Agent with Methods __init__ and Update move and position #8

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 Agents

it should get passed the parameters:

Methods: the init method should be creating a given number of agents with a given radius and sensor angle for all agents. eacht Agent should have a dictionary with current position and angle of movement

another method should update each agents position and angle of movement after eacht step

there has to be a third method "mapping" that calculates the position of float coordinates to a position in the array (we did not discussed yet in what class this method belong, but I would recomend it here)

image