Hello,
I have a question that I'm not trying to get an answer from either the NetLogo dictionary or the internet.
Imagine a closed world (box) of 5x5. Each patch in the world has 10 agents. Each agent walks around the world and when they walk 17 patches die. On this walk when using the line of code:
"set heading random-float 360"
some agents that arrive at the edge are stationary (walked 16 patches) and pass several ticks and do not die.
But if I use that same line of code above ("set heading random-float 360") and put an open world in all directions. Agents move around and die.
Additionally, when using the line of code below with the closed world:
"right random-float 360"
Agents, too, move around and die.
So I would like to know why this happens?
What is the difference between using heading and the right? And why does the closed or open world interfere when using the heading and right commands?
I've read the description of these commands in the NetLogo dictionary several times and I can't understand why this is happening in my code. Does anyone have any guesses?
Thanks in advance