Darwinbots Forum
Bots and Simulations => Bestiary => Multi-Bots => Topic started by: Peter on September 09, 2008, 11:06:58 AM
-
This bot was made for the multibot tutorial.
multibot wiki (http://www.darwinbots.com/WikiManual/index.php?title=MB_Construction)
'Animal Multi
'made by Peter
def head 50
'Gene 1 Food Finder
cond
*.eye5 0 >
*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
'Gene 2 Eat Food
cond
*.eye5 50 >
*.refeye *.myeye !=
'*.refeye *.myeye !=
*.head 0 !=
*.multi 1 =
start
-1 .shoot store
*.refvelup .up store
stop
'Gene 3 Avoiding Family
cond
*.multi 1 =
*.head 0 !=
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop
'Gene 4 Duplicate
cond
*.numties 0 =
*.robage 0 !=
start
50 .repro store
.head inc
stop
'Gene 5 Recombine
cond
*.robage 0 =
start
.tie inc
stop
'Gene 6 Splits.
cond
*.nrg 30000 >
start
.deltie inc
stop
'Gene 7 Multibot control center
cond
*.multi 1 = or
start
'*.eye5 .tout1 store
50 .sharenrg store
1 .fixlen store
100 .stifftie store
628 .fixang store
*.aimright .tout1 store
stop
'Gene 8 Body follows
cond
*.head 0 =
start
*.tiepres .readtie store
*.tin1 .aimright store
stop
end
-
A diatom, how interesting. However, I noticed that the code becomes a bit unstable when the animal splits.
-
A diatom, how interesting. However, I noticed that the code becomes a bit unstable when the animal splits.
What do you mean?
-
You mentioned in the wiki the bot becomes useless for a while when a tie hardens; I ran Animal Multi and saw that sometimes they would permanently freeze up, or fail to produce a second half.
-
You mentioned in the wiki the bot becomes useless for a while when a tie hardens; I ran Animal Multi and saw that sometimes they would permanently freeze up, or fail to produce a second half.
It was meant as a really simple bot. The only reason I can find it isn't reproducing is that it was blocked by something. Or it has already tied to something.
And the stuck thingy is possible then when the bot can't reproduce and therefore do nothing at all becouse there is a ''*.multi 1 ='' condition.
-
Been there, I had the problem with Tribolis that if it tried to reproduce while surrounded by enemies/food (often one and the same), the head would turn into a body bit and then not be able to reproduce.
-
Hmm... basic but interesting bot... i just dont get how the partnership between the two bots is beneficial though. i mean, the guy on the end being dragged around should act as a defensive turret or something, not just dead weight. also, maybe the guy on the end should share some energy with the 'motor' bot when it is low on nrg or something. other than that, well done!