eighthill / Slime_Mold_Simulation

A student project simulating smile mold🧫
MIT License
6 stars 0 forks source link

Issue #21: Update method reflect_at_boundary in agent class #26

Closed eighthill closed 9 months ago

eighthill commented 9 months ago

I've updated the method so the code won't check everytime with four different if-statements if an agent has touched the boundary. The new code now checks the absolute value of x and y, if it is greater than 1, the agent reflects from the boundary