models icon indicating copy to clipboard operation
models copied to clipboard

Missing comment in Ants model

Open ToonTalk opened this issue 8 years ago • 0 comments

to look-for-food ;; turtle procedure if food > 0 [ set color orange + 1 ;; pick up food set food food - 1 ;; and reduce the food source rt 180 ;; and turn around stop ] ;; go in the direction where the chemical smell is strongest if (chemical >= 0.05) and (chemical < 2) [ uphill-chemical ] end

The 'and (chemical < 2)' part of the conditional really should be explained. It is contrary to the comment and the description in the Info tab. I assume its purpose is to prevent those looking from food from following those returning to the nest since that is where there is lots of fresh (yet to be evaporated) pheromone.

I tried to find some explanation as to how real ants avoid this problem without any luck.

ToonTalk avatar Mar 17 '17 07:03 ToonTalk