So, what you mean by saying something is more intelligent than something else? What criteria are you using to evaluate that?
And yes, it's the way programming works - when you know what you are trying to achieve. Software is about input and output and unless they are deterministic, you can't write code.