Welcome To Darwinbots > Newbie

Sexual reproduction

<< < (2/5) > >>

Moonfisher:
You need the bots to fire -8 shots at their own and even enemy bots. Then the bots getting hit need to reproduce before the fertilized counter runs out.
Also if the DNA is too far appart I think it doesn't mix well, may just take one or the other. I think you would have more luck adding this gene to the end of all the bots :

cond
*.vtimer 2 <
start
*.vtimer 0 =
*.genes rnd .mkvirus store
not
10 .vshoot store
stop

Not sure if this actualy works, haven't tested it, but you get the idea... just spread random genes through a virus from all the bots, see what happens...
If the sim stabilizes you can always throw in a few random bots manualy to spice things up again, see if some new genes catch on...
But I wouldn't add any realy small tie feeders like fruitflies or rapebots (lovebot, quickdraw and Saber).

Houshalter:
I did have the veggies targeting the bots and firing - 8 shots at them. I was hoping the gene that causes them to shoot - 8 shots would get mixed in with the other bots but it just takes the dna of the longer bot and copys it (although I noticed after a while the bots got close to veggies when the wanted to reproduce to get the -8 shots.) Also your idea sounds plausible but theres no way to stop a bot from getting duplicate genes. It just makes the genome grow longer and longer and longer. Maybe theres away to test the dnalength of all the genes and the delete any genes that are the same lengh. possibly useing .dnalen or something like it.

bacillus:
If you want genes to be mingled, then the virus approach would be the best one. Just have a virus that shoots a random gene every turn, or cycles through its genes, and if an infected cell has more genes than it should (normal + 2 genes), then it deletes one of its genes at random.

Houshalter:
Like this?

--- Code: ---start
*.vtimer 0 =
*.genes rnd .mkvirus store
*.vtimer 1 =
.vshoot inc
*870 0 =
*.genes 870 store
*.genes 3 add *870 =
*.genes rnd .delgene
stop
--- End code ---
It seems to work but this is my first virus so I might have messed up or something. I just loaded it as a veggie to let it infect other species. I also disabled its vision to prevent it from absorbing the dna of more powerful bots then using it to wipe out everything. One thing I noticed is that at first the virus shots travel only as far as any other type of shot but then later in the simulation they just go on and on and on and on etc, etc. Also the number of genes in the bot continues to grow even though it only takes up to 2 new genes every generation. (100 generations times 2 is 200 new genes! Most of them are probably duplicates to.)

Moonfisher:
Seems like it should work. But either way by spreading viral defences and slime genes it would counter the effect of the virus. Also bots with a genome too long will mutate too much to survive, so they should adapt.
You can always set a longer interval for shooting out a new gene so you don't spam the bots too much with random DNA...
Like
*.robage 300 mod 0 =
*.robage 10000 < and

This way you would be able to regulate how many new genes you want floating around the sim.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version