I was around the "hello world" level when this came out, but in some ways playing and programming are/were quite similar, a big part of playing was mentally de-compiling behaviors like this and part of the fun. One of the things that made Goldeneye stand out at the time was that this sort of complex behavior was used for all/most of the enemies, previously this was mostly reserved for boss fights.