Bots and Simulations > DNA - General
Question on viruses
Ispettore:
Hello to everyone, I'm back again. My internet connession was broken for like a month, so I couldn't connect. Btw, I started interesting in viruses (or virii?). But I've not understood much from the tutorial, so here I am to ask more infos on viruses. I've also seen a simulation where non-letal virus evolved and pushed the evolutionary rate of bots... I'd like to know more on dna copying, vtimer and all those things, if you have a bit of free time (I think that the topic here upstairs is too old, because it's from 2005... I don't know if it's still right). Thank you.
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
Peter:
--- Quote from: Numsgil ---The simplest virus possible is something like:
cond
start
*.thisgene .mkvirus store
1000 .vshoot store
stop
--- End quote ---
The simplest replicating virus(well, shorter) could be.
--- Quote ---cond
start
*.thisgene .mkvirus store
stop
--- End quote ---
The virus need another virus that stores a value in .vshoot, anytime it is placed after another selfreplicating virus, it will replicate. I thought this kind of virussus, the ones that need another virus are existing too in IM.
Funny is that if there aren't any other virussus it can't replicate. But if there are others this version is even faster created and spreiding becouse it is shorter.
Oh, and yes Numsgil is right in his explanation, he made part of the program so he knows best(maybe after EricL) but atleast he knows almost best.
And I am pretty sure the wiki has a nice explanation about viruses, so try the wiki .
shvarz:
Whoa! I missed the fact that shorter viruses are created faster. How does that work?
Peter:
--- Quote from: shvarz ---Whoa! I missed the fact that shorter viruses are created faster. How does that work?
--- End quote ---
Wiki virus
little quote
--- Quote ---3 It takes a finite amount of time to copy this gene into the virus so at the beginning of the process, the gene length is calculated and this value is placed into a count-down timer which can be accessed by the robot via .vtimer(vtimer is the length of the DNA being copied * 2). This is a read only value indicating how long you have to wait until the virus is ready. Vtimer is 1 when there is a virus ready to fire. 0 if there is no virus either ready or being constructed, > 1 if there is still time left to wait.
--- End quote ---
If I understand right, a virus that doesn't use ''*number* .vshoot store'' is 6 cycles faster made(total of 12 cycles will it be then, with it, it will be 18 cycles).
Here I mean the virus Numsgil posted as example. The shorter one is then the one I posted.
I though there where also some other calculations about the lenghth and cost and stuff but I am not sure how it works. How does it work?
Navigation
[0] Message Index
[#] Next page
Go to full version