Before getting into the meat of this article, I’m going to revisit a couple previous articles’ content and the updates I’ve made to them. The changes aren’t really significant enough for an entire article on their own, and I’m eager to keep moving forward with this project instead of endlessly revisiting past accomplishments. So first up, there’s a new version of the calculator module. It has cyclic nesting detection nowbrute force by iteration count, but better than nothing and re-factored for clarity. Oh, and I did a couple bug-fixes. Or, not really bugs? The system was functioning as intended, but there was some unintended behavior happening in there that I rooted out. For example, the resource list had double entries for nodes which contained other nodes, but did not themselves appear on the list of nodes to solve. I suppose it made it solve a little slower, so, optimized for performance? I was also hoping to detect negative resource balance (which the first iterationthe one without nesting had) but I haven’t settled on an elegant way to do it, and I’ve been too busy to wallow through a naive implementation.
Just wanted to mention one thing more about the code. You’ll see near the top of the page the following odd line:
DEBUG = False #True #
Which is designed for ease of Ctrl-select and copy paste to quickly toggle the settings. I’m curious if it works in other text editors, but in all the ones I’ve used this lets you toggle in four “key strokes.”how do you define number of strokes with modified key presses?
Latest Version (0.2) here.
The other one was your dose of star-field for the article. Continue reading 〉〉 “Proc-gen IP-Infringement-Ship”
T w e n t y S i d e d


