Original Post
Basically, your looking for that one non-obvious bithack that would save your game heaps of time (something that gets called heaps, maybe?), so you want to optimise it to bits. How? You define a function which defines how well it if. (from 0-2^32. So as it gets more accurite, its score goes up, as it gets faster its score goes up). You then generate each possible opticode, for eg. if you have maybe 12 instructions (very risc), then you could search up to about 7 opticodes. (39,089,245 instructions needed. If your looking for all programs 1 opticode long, then 2, then 3, ect.) Once you have your 39 billion instructions, you execute the program and you find out how well it does. (using your function). If it does better, then the one you last seen, then you dump the one you last seen, and you add this one. The whole thing might take a few hours -> a day to finish tho. (then again, this is very parellelisable, so you could have a group of 12 comps and get a free opticode extra that you can search. Or you could 'sign up' a few thousand computers to help with the optimisation ). How does this one fair? From, Nice coder