Sometimes, though, you WANT computers to make mistakes. For instance, when a mere mortal wants to play a game of chess with a computer.
It's no fun to get repeatedly crushed, so chess computer developers try to provide a way to set the playing strength of the computer.
So far, this has generally not been satisfactory. Here's how games often go when you are not a grandmaster and you set a computer to play at your level. It starts out totally kicking your ass. Then it makes a completely idiotic move that even a beginner can see is bad, turning the game around so you are theoretically winning. Then it plays perfectly for a while, brutally punishing every mistake you make, and it ends up winning again. Then it makes another idiotic move, and so on.
It's kind of funny. We've basically solved the problem of how to make a computer play like a person with a 3100 rating, but how to make a computer play like a 1500 is still largely unsolved.