The problem with games like this is that players can share code. Decent scripts will be available for everything which takes some of the fun out of the game and makes it less fair to people who do it by themselves.
OTOH if the coding itself is pretty lightweight and the strategy itself is what matters, code sharing might not be a problem. It would also be good for code learners. I think one of the challenges in learning to code today is the difficulty of fining projects where you can get dozens or hundreds of hours using fairly basic programming.
What fun is a game about coding if you don't actually have to do any coding?