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 12 forks source link

Doubles efficiency of findCellsInRadialRange #36

Closed colinhanrahan closed 8 months ago

colinhanrahan commented 8 months ago

I figured radial movement and vision — especially at higher values — would be pretty time intensive for the simulation, so I wanted to make it as efficient as possible. This should help out with #18.

colinhanrahan commented 8 months ago

New commits reformat lines again and remove the current cell from findCellsInRadialRange. Let me know what you think.