Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Peter on December 21, 2007, 01:24:01 PM
-
What is the folowing gene supposed to do.
I have put this gene somewhere in the middle of multiply4. I thought it did just execute well every time. Now it seems some bots are and others aren't, makes it more unpredictable how does it work could it have to do with the activation of a earlier gene.
And another question, does the storing cost any nrg besides the storing cost.
The gene
start
460 .eye9width store
520 .eye9dir store
460 .eye1width store
-520 .eye1dir store
stop
-
It should execute everytime. Note that gene numbers are likely off in the gene acticvations dialog, a bug I'm working on.
There is no implicit cost to stores other than that indicated by the human.
-
Its execution will depend on the cond before it. A single cond will control multiple start statements (and else statements too).
Example:
cond
*.nrg 3000 >
start
stuff
stop
...junk...
start
other stuff
stop
Both start blocks are controlled by that single cond block.
-
Oh, right. Actually, it's even more complex than that. A start means "AND up everything on the boolean stack and execute the following DNA if the result is true. So in this case,
cond
true
start
false
stop
start
1 .dn store
stop
1 will not be stored into .dn because of the false above.
-
by the looks of it (a guess) it will change the width of the eyes (can bots even do that?)
-
by the looks of it (a guess) it will change the width of the eyes (can bots even do that?)
Yes, it does. This gene make the two outer eyes bigger, and make the full sight a circle, that way multiply can look behind itself , no more opponent shooting in the back without knowing they are there.