Bots and Simulations > DNA - General

Question on viruses

<< < (2/3) > >>

Ispettore:

--- Quote from: Numsgil ---.vtimer gives an indication of the status of making a virus.

.vshoot will shoot a virus if one is ready with a "force" given by the value you pass in.  Longer range shots take more nrg but go much further.

.mkvirus will copy the gene given by the genenum you use here in to a new virus.

.thisgene returns the gene number of the currently executing gene.

The simplest virus possible is something like:

cond
start
*.thisgene .mkvirus store
1000 .vshoot store
stop
--- End quote ---
okay, tell me if I'm wrong:

first line: create a new virus with this gene
second: spend 1000 nrg for the shot (very much) continuosly
But... if I'd like the robot to send a virus every 500 cycles? How should I use the vtimer?
And also... if I wanted to put other genes in the virus?
Thank you for your explanations, and sorry for wasting your time.

googlyeyesultra:
I think the number of cycles required to make a virus is equal to the number of BP (base pairs, or DNA instructions) times two.

EricL:

--- Quote from: googlyeyesultra ---I think the number of cycles required to make a virus is equal to the number of BP (base pairs, or DNA instructions) times two.
--- End quote ---
This is correct.

shvarz:
That's pretty cool. Would be a good idea to have such a system for bot reproduction as well. And make the copying rate directly proportional to the mutation frequency.

Numsgil:

--- Quote from: shvarz ---That's pretty cool. Would be a good idea to have such a system for bot reproduction as well. And make the copying rate directly proportional to the mutation frequency.
--- End quote ---

I really like this.  For DB3, I was planning on having reproduction take some extra time to copy DNA and split properly (helps a bit with physics, too, if there's a lead up period).  I was also going to allow bots to influence their mutation rates (spend extra nrg to reduce mutation rate, for instance).  However, I think the time to copy the DNA and the DNA length need to be at best loosely related.  I can see reproduction time easily overpowering lots of other Darwinian forces, causing bots with shorter and shorter genomes at the expense of other, more complex adaptations.

Combining the two ideas makes a lot of sense.  I'm not sure if I want to introduce repro lag in the current version, though.  It's a rather dramatic change.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version