Machines, minds and adaptive behavior