A small generation of ant's (dynamic particle) tries to find the path for a sugar placed at some distance that have a obstacle. If ants collied with obstacle, it dies.
A generation live for certain amount of time and then dies.
This small project shows how ants passess traits to their next generation to figure out the path to sugar avoiding obstacle.
checkout this out -> https://dg92.github.io/ant_sugar/
Note: after some generations the ants figure out the path to sugar and then all ants will follow the same path.