Darwinbots Forum

Bots and Simulations => Bot Tavern => Topic started by: Testlund on September 11, 2013, 06:01:36 AM

Title: Trying to make a multibot
Post by: Testlund on September 11, 2013, 06:01:36 AM
I can't figure out how tie sharing works.

Code: [Select]
cond
*.robage 0 =
start
67 .memloc store
101 67 store
.tie inc
100 .stifftie store
stop

cond
*.refxpos 0 > and
*.memval *67 !=
start
*.refxpos *.refypos angle .setaim store
-1 .shoot store
stop

cond
*.nrg 16000 > and
*.numties 3 <
start
50 .repro store
314 rnd .aimdx store
stop

cond
*.nrg 16000 > and
*.numties 2 >
start
*.tiepres .tienum store
32 .tieval store
-1 .tieloc store
stop

cond
*.nrg 8000 < and
*.numties 0 >
start
*.tiepres .tienum store
-32 .tieval store
-1 .tieloc store
stop

cond
*.body 16000 >
start
50 .fdbody store
stop

EDIT: I think I got it.
Title: Re: Trying to make a multibot
Post by: Testlund on September 11, 2013, 09:31:01 AM
Once the bot population reach generation 3 they can't tie to each other anymore. Why is that?
Title: Re: Trying to make a multibot
Post by: Botsareus on September 14, 2013, 01:07:43 PM
Quote
Once the bot population reach generation 3 they can't tie to each other anymore. Why is that?

That is really weird, I'll have to take a look.

Does it happen under any robot design?