Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: 2122 on April 08, 2005, 11:26:29 PM
-
I'm trying to make a basic tie bot.
It works pretty well but it attacks its own, and sometimes the ties harden before its finnished feeding. Can someone tell me how to make it untie itself after a tie hardens?
-
Use .deltie to delete a tie.
Just store the same value into it that you did to make the tie. For example if you had formed the tie with this line..
25 .tie store
then you will need to delete it with..
25 .deltie store
If you don't know the number of the tie (tie phase as we call it) the you can find it with *.tiepres such that this line..
*.tiepres .deltie store
will remove it. The drawback of this technique is that it takes one full cycle longer to find the tie number in this way than if you do it directly with a known number. I designed it that way so that *.tiepres is a weeker defence against tie feeders than if you know the tie phase (number) that they use.
-
You can use:
cond
*.multi 1 =
*.tienum *.tiepres !=
start
*.tiepres .deltie store
stop
It'd be better to use the share feeding method when the ties harden. Something like:
cond
*.multi 1 =
start
99 .sharenrg store
stop
forces the other bot to give yours 99% of its nrg.
Hope this helps,
Endy B)
P.S.
Darn, I took too long, PY just posted... :rolleyes:
-
Sorry Endy.
At least you included complete genes :D