WHats more complicated cnc code or coding a game?
They both have thier challenges. For me it is easier to read C code than G code. They are both highly structured. At any given time either one can be hard or easy to read. It all depends on what is being accomplished.
A good game, with a lot of depth, will easily exceed a million lines of code. In G-code, that would be a pretty complex part.
I rigged in a panic switch on my mill to shut it completely down if I see something bad about to happen. I do have a zero stop, which will shut down the servos if the head tries to move to a negative index. I just have to remember to set it when I index the head. That switch has saved me alot of bits and chucks.