Darwinbots Forum
Bots and Simulations => Bot Tavern => Topic started by: Houshalter on March 06, 2010, 11:35:48 AM
-
How does this bot reproduce? Its alga minimalis afer 5 million cycles and 30 mutations. It has the number 300 hundred and an inc but it only reproduces occasionly, but it looks like it should reproduce every cycle or not at all. I don't get how the code works to allow this.
dist
start
300 or
start
inc
else
-
If I understand it correctly the inc command causes the bot to go through various instructions in incremental steps,occasionally hitting the .repro command. It's the most common way of evobots to do stuff. The code just breaks down and gets replaced with inc or dec procedures.
-
It's constantly increasing .repro, so of course it will reproduce. The only issue is why it isn't reproducing constantly.
I think the most likely explanation is that the bot usually doesn't have enough body to repro, so .repro keeps increasing but doesn't "trigger" until the amount of body is over the threshold.
-
This is a veggie bot and its set up to get 50/50 in nrg/body. Now, that I think about it again, I think I know whats happening. Its reaching the veggie cap and then when one dies they all try to randomly reproduce. Is there anyway to control the veggie population without setting a cap? Oh and its DNA has changed since then. Now it has a bunch of random insertions that don't seem to affect its behavior.
-
Is there anyway to control the veggie population without setting a cap?
How about an ageing cost together with dynamic costs? You can adjust the aggressiveness of it or turn it off when the population are at a level you're happy with.
-
The veggy cap is really artificial, but it's the only way I've had success with a veggy/animal co-evolving sim. It makes it essentially impossible for all veggies to die out at once, while preventing the veggies from becoming so numerous that the whole sim is swamped.