You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the new discrete spaces, you can easily access the agents in a given cell, via cell.agents. However, if you modify this list by, e.g., removing agents from it, you mess up everything because you are modifying which agents reside in which cell. The obvious solution is that cell.agent should return a copy of the list of agents, rather than the actual list. This removes the potential for side effects.
The text was updated successfully, but these errors were encountered:
In the new discrete spaces, you can easily access the agents in a given cell, via
cell.agents
. However, if you modify this list by, e.g., removing agents from it, you mess up everything because you are modifying which agents reside in which cell. The obvious solution is thatcell.agent
should return a copy of the list of agents, rather than the actual list. This removes the potential for side effects.The text was updated successfully, but these errors were encountered: