Learning and decision-making in artificial animals (Journal of Artificial General Intelligence, 2018)