How soon? I don't know of any software I've written for which that could be done. The first program I ever wrote was an implementation of Tic-Tac-Toe, and I can't imagine a set of parameters to produce that which aren't specifically for making games of that nature while also being easier to select than writing the code myself. I'd bet such a system is impossible in general, and that that should be the obvious conclusion.
Now, machine learning to find bugs or adjust variables... yeah. I can see that.
Now, machine learning to find bugs or adjust variables... yeah. I can see that.