Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make MultiGrid.place_agent faster (projectmesa#1508)
The condition tested now is a constant time operation when an agent has not been placed in a grid yet, while before it was a linear time operation in relation to the size of the list of agents.
- Loading branch information