If HUNGRY, and if they have already selected a resource item for consumption (FOODTARGET), foragers will EAT (1 min), or MOVETOFOOD if the item is beyond reach (0.9 meters) and EAT once the item is within reach (Fig. 1 b, fourth line). If foragers do not yet have a FOODTARGET but their last action was SEARCH, this means they did not find any resource items in view sufficiently attractive and then they will MOVE forward δ i meters in the direction the foragers are facing (Fig. 1 b, fifth line). If they did not yet SEARCH, they will SEARCH (Fig. 1 b, sixth line). During SEARCH up to 20 resource items in view (2 meters) are assessed in sequence (Fig. 1 a, grey semi-circles). The 20 items are randomly selected from those in view. The search terminates as soon as an item is chosen for consumption, or when none of the items is chosen.