To be fair though, isn't that exactly what we do as humans though? We keep trying different approaches, discard the ones that don't work, and remember the ones that do?
And we also learn by observing what the results are from other people's attempts or experiences, and advice we are given.
How else would we know not to go into the basement of a creepy house when the power goes out or to decline the red T-shirt on a space mission?
I'll deem AI a success when one humanoid robot goes into a room full of nut-jobs with baseball bats and one robot comes out rubbing its palms together.