nkremerh / sugarscape

Development repository for the Digital Terraria Lab implementation of the Sugarscape agent-based societal simulation.
https://github.com/digital-terraria-lab/sugarscape
MIT License
7 stars 11 forks source link

Fixes bug where agents with zero range move #101

Closed colinhanrahan closed 1 month ago

colinhanrahan commented 1 month ago

I noticed that a few cardinal agents were moving diagonally. On seed 7994924011103639114, agent 107 starts at cell (25, 7) and moves diagonally within the first few timesteps. Turns out agents with zero range were still being allowed to use the cells in range from the end of their previous timestep.