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
Context: #1508 (comment)
Currently, calling place_agent twice or more in a row without calling remove_agent beforehand causes the agent to exist in several locations.
Expected behavior
An error should be raised if an agent's pos attribute is not None, when calling place_agent.
A stronger guarantee would be to check the entire grid for the existence of the agent, but this is very costly to do, unless there is a dict attribute for the grid to track the agents existence.