I hate to be the bearer of bad news for AIbabs, but 80% of the work of gamedev is playtesting, the coding is the fast part.
Even if it gets to the point where it can actually code properly by pure statistical chance, you aren't getting this shit until actual AGI.