There's an entire sub-field of artificial intelligence to use AI to make characters in a game more believable--look smarter, so to speak-- so that you, as a player, think you're playing a better game.