Bots and Simulations > Evolution and Internet Sharing Sims

Battle of viruses

<< < (4/5) > >>

shvarz:
Coming back to the original point.  This "defective" virus works great as a protection against viral infections. I see infections sparking up now and then, but they all get quenched very quickly and when I look at the bots all I see is infections with this "protective" virus.

Again, this is a great model for real life, as many antiviral systems are actually composed of former viral proteins, which are expressed in host cells to interfere with viral infections.

shvarz:
Another development. I see a virus that picked up conditions from one of the genes in my veggies. As a result the virus is only active when adult bots (over 1000 age) are attacked and loose their poison.  Good strategy that some viruses also use - they sit quietly when things are fine, but activate when their host is stressed. Amazing!  

I think viruses show real advantages of DB for simulating evolution. We are yet to see truly interesting behaviors appearing in bots, but viruses evolve much faster and thus are better at developing new strategies for survival.

Here is the code:


--- Quote ---cond
 *.robage 1000 >
 *.poison 200 <
 start
 *.pleas 0 >
 *.myeye 0 =
 and
 50 .repro store
 314 .aimleft store
 clearbool
 *.out3 *.myeye !=
 *.robage 1 >
 and
 *.myeye 0 =
 or
 *.thisgene 1 add .delgene store
 *.thisgene 1 sub 340 1 rnd mult store
 clearbool
 *.out3 *.myeye =
 *.out3 0 !=
 and
 *.thisgene 0 >
 and
 *.thisgene .delgene store
 clearbool
 *.vtimer 0 =
 *.thisgene .mkvirus store
 100 .vshoot store
 stop
--- End quote ---

Peter:
This virus seems human-made.

I has too much 'logic' inside itself to be a complete evolved virus.

shvarz:
It is a human-made virus, but the conditions are evolved. Not from scratch, but rather the virus took them from a gene in my veggies - it was a poison-making gene, and it was designed to be active when veggies grew a bit first and when poison levels fell below 200.  The virus probably inserted after the gene, then the actual gene got deleted while its conditions got attached to the virus.

Endy:
I personally like the idea of leaving delgene as it is. I've managed to use it's ability to self reset, to do some interesting things.

.delgene dec
*.delgene .aimdx store

in this bit of code the bot spins constantly faster then resets to a slower spin rate again.

You can also do a *.delgene inc to set all the values up to (.delgene - 1) to 1.

Managed to make one of the smallest viruses with this that doesn't delete it's own dna

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version