Abstract
Taking a detour to reach a goal is intelligent behavior based on making inferences. The main purpose of the present research is to show how such apparently complex behavior can emerge from basic mechanisms such as contextual categorisation and goal attribution when perceiving people. We presentacacia (Action by Contextually Automated Categorising Interactive Agents), a computer model implemented using StarLogo software, grounded in the principles of Artificial Life (Al), capable of simulating the behavior of a group of agents with a goal (for instance, to find a treasure in a treasure hunt ) in an environment where obstacles mask the goal site. The results of the simulations show that agents reach the goal the fastest when they follow each other and take detours. We argue that these results indicate that intelligent adaptive behavior is based on the contextual categorisation of environmental constrainst (that is, obstacles and other agents).