Welcome To Darwinbots > Newbie

Best thing ever

<< < (5/10) > >>

Tilthanseco:

--- Quote ---cond
 *.eye5 -10 >
--- End quote ---

That makes it so the bot always does that gene even when it doesn't see something. (because eye5 is always at least 0 which is > -10)

As a result, the bot stops moving to the side and starts accelerating 30 when it doesn't see a bot, because the refvel resets to 0.

If you have this as a plant, then it probably helped it run away from predators because it always moves now.

ikke:
If you have per kilobody energy, and set it low, the mutation to watch for is a change in the .repro condition from nrg to body

southpointingchariot:
Can anyone tell me what "Objects > Speciation does?"

Tilthanseco:
I think it is broken now, but it sounds like it made an awesome looking graph. And it was supposed to split species in 2.
 http://forum.darwinbots.com/index.php/topic,2910.msg1377954.html#msg1377954

The genetic distance and generation distance graphs are also broken.

southpointingchariot:

--- Quote from: Tilthanseco on June 29, 2012, 03:43:44 PM ---I think it is broken now, but it sounds like it made an awesome looking graph. And it was supposed to split species in 2.
 http://forum.darwinbots.com/index.php/topic,2910.msg1377954.html#msg1377954

The genetic distance and generation distance graphs are also broken.

--- End quote ---

Too bad!

I'm now working on getting them not to shoot their parents or children. My first actual coding! The wiki lists some methods to prevent a bot from attacking its own species, but I only want to prevent them from attacking their parents and children. Any advice?

I'm also having trouble figuring how to structure the sexrepro and .fertilized code. I'm now trying to figure how to tell a bot not to fertilize a bot that's already fertilized. Are there any prominent examples of sexual bots or other suggestions? Here's the code I have:
--- Code: ---cond
 *.eye5 0 >
 start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 stop

cond
 *.eye5 50 >
 start
 -1 .shoot store
 *.refvelup .up store
 stop

cond
 *.eye5 0 =
 start
 314 rnd .aimright store
 stop

cond
*.eye5 50 >
*.refeye *.myeye =
start
-8 .shoot store
stop

cond
*.fertilized 0 >
*.nrg 10000 >
start
50 .sexrepro store
stop

 cond
 *.nrg 30000 >
 start
 10 .repro store
 stop
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version