28
« on: May 23, 2005, 10:08:38 AM »
xpos and ypos are both programmable as a single gene. Not very cost efficient, but not all bots need such a gene.
It might also, as time goes on, become inaccurate, but who knows?
cond
start
25 .veldx addstore
26 .velsx addstore
stop
The only difference is that it's relative to it's starting position.
Which, for antbots, is good, because the queen can pass it along to it's children, and then they simply go back to 0,0.
Hence, xpos and ypos are practically useless. Even if you wanted to make bots communicate the location of food, they'd say where the food is relatively rather then based on their oppinion where the center of the world is.
And as time goes on, it'd become (realistically) inaccurate. requiring antbots to search for their queen, and reestablish where they are based on her being the center of the world. (Which would be loads more amazing if xpos and ypos were removed.)
So, simply put, xpos and ypos aren't actually needed to make a location system, assuming you're creative enough. (And if you want it for evolution, then I remind you that evolution rarely creates anything good, and this isn't exactly helped by all the functional memory locations. It'd be like making a random word generator, and running it until we get something good; except instead of 26 letters, we'd have 260.)