Hi,
I have a few questions about issues I have encountered making my NetLogo model. The model has three breeds, robots, enemies, and friends. The first issue comes with the movement of the enemies and of the friends: On each tick, each friend must move one step up, down, left or right (randomly), and each enemy must move one, two, or three steps up, down, left or right (randomly).
To do this, I generate a random integer to decide the direction and multiply it by 90 to get only up/down/left/right. I also generate a random integer to decide the number of steps, in the case of enemies. I use face `some-patch` and move-to `some-patch` for a given patch
(based on what was randomly generated)
for the robot, and all enemies and friends. Both procedures run once per tick.
I am reasonably sure that this is correct, however, it seems like each tick they move several times, so, the movement itself is correct, but they should only be able to move once per tick. The robot's movement, in comparison, is fully correct, it only moves once per tick, and I can see this by slowing it down on NetLogo. Which leads me to the second issue...
When I remove all enemies and friends from the model, I can see what happens in each individual tick, and this works fine for the robot, one enemy or one friend also shows correct behavior per tick, but adding even a few more enemies or friends makes NetLogo unable to show me what happens in individual ticks (even slowing it down). I have tried ticking and unticking "View Updates" in the interface, and using both "on ticks" and "continuous", but to no avail, all have the same issue. I'm really not sure what's going on here; if anyone has any suggestions or needs further info please let me know.
Samir