forked from projectmesa/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make swap_pos part of Grid instead of SingleGrid (projectmesa#1507)
* Make swap_pos part of Grid instead of SingleGrid * Update test_grid.py The second commit changes the agents sampling to `agent_a, agent_b = list(filter(None, self.grid))[:2]` because when the test is moved to `TestBaseGrid`, the `self.grid` in `TestBaseGrid` is not full.
- Loading branch information
Showing
2 changed files
with
50 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters