Code center > Darwinbots Program Source Code

Chloroplasts

<< < (18/18)

Botsareus:
Let's test it! Let's test it!

attached alga and Animal_Minimalis please copy to your 'Robots' folder

I am running two experiments:

Robsbecomevegs target goal is for robots to become plants

Vegsbecomerobts target goal is for plants to become robots

Botsareus:
noticing something already:

I am not sure if robots mutate the new commands, we need a robot we a bunch of zeros and test copyerror and insertion.

Here is something else I am noticing, it is rather disturbing:

Botsareus:
I am thinking of this fix, what do you think panda?


--- Code: ---Public Function FindRadius(ByVal bodypoints As Single, ByVal chloroplasts As Single) As Single
  If bodypoints < 1 Then bodypoints = 1
  If chloroplasts > bodypoints Then bodypoints = chloroplasts 'Botsareus 8/31/2013 prevent ultra small robots
  If SimOpts.FixedBotRadii Then
    FindRadius = half
  Else
    ' EricL 10/20/2007 Added log(bodypoints) to increase the size variation in bots.
    FindRadius = (Log(bodypoints) * bodypoints * CubicTwipPerBody * 3 * 0.25 / PI) ^ (1 / 3)
    If FindRadius < 1 Then FindRadius = 1
  End If
End Function
--- End code ---

we need a way to prevent these ultra small robots, the only other way I think is by force killing them...

edit: hmmm... it looks like I solved the problem just by adding costs

Panda:
Yeah, it's either costs that you have to increase or decrease the amount of energy that they get from the simulation.

Panda:
My biggest problem was getting a predator prey system going. Usually I would get a good 5 cycles and then one would die off. I'm not sure how to solve this, either. I'll find an example. Maybe I need to write a better veggie bot.

Navigation

[0] Message Index

[*] Previous page

Go to full version