Trial and error in the ways of machines