Code center > Suggestions
Genome structure
Sprotiel:
--- Quote from: Endy ---I've been taking a look at the Evolve4.0 dna structure, since they seem to have something like this already. I do like how they can have conditions daisy chained to each other ie.
--- End quote ---
Conditions can easily be chained in DB:
'A
cond
...
start
...
1
stop
'B
cond
0 !=
...
start
...
1
stop
'C
cond
0 !=
...
start
...
stop
Endy:
Not really as smooth to look at though, and you wind up with partial conditions everywhere.
MacadamiaNuts:
Nye, I missed the post about the condstarts. Mixin' it:
Let boolean operators drop true (1) or false (0) in the integer stack and get rid of the boolean stack.
Then the condstart reads the last stack value and if true, executes the commands. No more cond's in the code! And bool ops would be useful too for the actions code.
So codes like these would work:
*.robage condstart ... store stop
*.up sgn condstart ... store stop
... start 50 .aimdx *.eye5 0 = mult store stop
Numsgil:
I've thought about this sort of thing from time to time, but I just don't think it'd work very well. Consider what a negative number would mean. Or what 86 would mean.
And then you're also increasing the complexity of use of store commands (taking 3 stack values instead of 2). I just think that this would be the wrong direction.
MacadamiaNuts:
It isn't the store the one picking the value, but the start.
So, when the last number in the normal stack is a true value, as it would result from a condition operation, the following start activates. Stores wouldn't change at all in this last suggestion.
It's so a small change it at least could be an option...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version