Welcome To Darwinbots > Newbie

Best thing ever

<< < (2/10) > >>

Numsgil:
It's short for conspecies.  Or more specifically, conspec recognition.

You'll need to run two instances of Darwinbots at the same time, but yeah, you can run more than one simulation at the same time.  That's actually the only way to use more than one core if you have a multicore machine.

southpointingchariot:

--- Quote from: Numsgil on June 28, 2012, 02:18:28 PM ---It's short for conspecies.  Or more specifically, conspec recognition.

You'll need to run two instances of Darwinbots at the same time, but yeah, you can run more than one simulation at the same time.  That's actually the only way to use more than one core if you have a multicore machine.

--- End quote ---

Again, thank you. A few more random questions:

1. After a simulation has been running for a while, how do you copy the code of an evolved bot?
2. Veggies are spontaneously appearing - how do you turn that off? Veggies can reproduce right?
3. Is there any methodology that allows bots to mix their code to form an offspring?

Numsgil:

--- Quote from: southpointingchariot on June 28, 2012, 03:06:28 PM ---
--- Quote from: Numsgil on June 28, 2012, 02:18:28 PM ---It's short for conspecies.  Or more specifically, conspec recognition.

You'll need to run two instances of Darwinbots at the same time, but yeah, you can run more than one simulation at the same time.  That's actually the only way to use more than one core if you have a multicore machine.

--- End quote ---

Again, thank you. A few more random questions:

1. After a simulation has been running for a while, how do you copy the code of an evolved bot?

--- End quote ---

If you double click on a bot in the sim, you can open up a properties page and view its DNA.  From that I usually just copy+paste.


--- Quote ---2. Veggies are spontaneously appearing - how do you turn that off? Veggies can reproduce right?

--- End quote ---

Look for "veggy repop" in the options.  There's a whole slew of ways to tweak it.


--- Quote ---3. Is there any methodology that allows bots to mix their code to form an offspring?

--- End quote ---

There's a form of sexual reproduction, but I don't know if it's currently working.  Here's the article on it.  It's not very well described beyond that, unfortunately.

ikke:

--- Quote from: southpointingchariot on June 28, 2012, 12:25:13 PM ---After looking at various programming game/organic things, I ran into this, and have been extremely excited so far. I have no real experience with stack languages, so I'm trying to piece together an understanding from the Wiki - is there a more cohesive step-by-step tutorial? I've been running a simulation for about 4 hours now - whoever made Callidus apparently knew what they were doing.

--- End quote ---
for programming look up de bots in this F3 thread: http://forum.darwinbots.com/index.php/topic,2969.0.html
in the zipfile look for shoot, defence etc.
I used these to start Gimmick, my F3 /F2 bot

Tilthanseco:

--- Quote ---3. Is there any methodology that allows bots to mix their code to form an offspring?
--- End quote ---

Like Nums said.
You could have it shoot sperm randomly when it sees something, and then .sexrepro when it is fertilized.


--- Code: ---'Put this after your -1 .shoot store gene
cond
*.eye5 40 >
20 rnd 1 =
start
-8 .shoot store
stop

cond
*.nrg 10000 >
*.fertilized 0 >
start
30 .sexrepro store
stop
--- End code ---

This would work for a cannibot also.  ;)


--- Quote ---2. Just try and get meaningful evolution as quickly as possible.
--- End quote ---

An advanced way of evolving fast is to have only important values in the bot change as it reproduces.  You can do this by using Racial Memory that lets the bots pass down the values they used with a chance to change them. http://wiki.darwinbots.com/w/Racial_memory


--- Code: ---'Define names for the variables
def repronrg 971
def distance 972

'How far away to start shooting
cond
*.eye5 *.distance >
start
-1 .shoot store
stop

'How much nrg for repro
cond
*.nrg *.repronrg >
start
30 .repro store
stop

'Randomly change the values when young
cond
*.robage 100 <
10000 rnd 1 =
start
'Randomly add subtract up to 5 from value
*.distance -5 10 rnd add add .distance store
*.repronrg -5 10 rnd add add .repronrg store
stop

'Set the first values
cond
*.distance 0 =
*.repronrg 0 =
start
50 .distance store
10000 .repronrg store
stop
--- End code ---

For that ^ you should have mutations disabled (in options).  Then when they get better, you look at the best bot's memory at 971 and 972.  :happy:


--- Quote ---Is there a way to run two simulations at once?
--- End quote ---
Page 5 here has a nice tutorial on how to set up connect sims. (I havent had a chance to try it though) http://forum.darwinbots.com/index.php/topic,486.60.html

p.s. Hope I wrote the code right nums.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version