Bots and Simulations > Evolution and Internet Sharing Sims
Battle of viruses
EricL:
--- Quote from: googlyeyesultra ---Isn't .delgene reset every cycle? I actually just intended that as a defense against someone trying to delgene the virus (it would then delgene whatever gene was behind it instead).
--- End quote ---
Okay, I'm half wrong. First, the right part. .delgene does not reset for negative values. The way the currently code works, delgene is only reset for postive values. If positive, it is reset whether or not it's value is the in the range of valid gene numbers.
So .delgene counts down to -32000. I had done a little testing and thought I saw the gene delete itself so I thouhgt maybe the code wrapped -32000 to 32000 or similar, but I must have seen a mutation or something. The code MODs the dec back to 0 again and the countdown continues anew. So, I am mistaken. .delgene isn't reset but it never goes positive either so the virus DOES NOT delete the genome.
shvarz:
Ok, update on the green hacker - it's gone almost extinct in my sim. I'm not sure why. There are only two bots of this species left in my sim. I managed to find one of them and it's genome is:
--- Quote ---'''''''''''''''''''''''' Gene: 1 Begins at position 1 '''''''''''''''''''''''
start
*.myshoot add *.myup add 31999 mult 50 4 .vtimer store
.delgene dec
stop
'''''''''''''''''''''''' Gene: 1 Ends at position 14 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 2 Begins at position 15 '''''''''''''''''''''''
cond
65 *999 !=
start
*.thisgene .mkvirus store
*.myeye *.myshoot add *.myup add 31999 mult 50 floor .vtimer store
.delgene dec
stop
'''''''''''''''''''''''' Gene: 2 Ends at position 36 '''''''''''''''''''''''
'''''''''''''''''''''''' Gene: 3 Begins at position 37 '''''''''''''''''''''''
cond
65 *999 !=
start
*.thisgene .mkvirus store
*.myeye *.myshoot add *.myup 31999 mult 50 floor .vtimer store
.delgene dec
stop
'''''''''''''''''''''''' Gene: 3 Ends at position 57 '''''''''''''''''''''''
--- End quote ---
Looks like your mrepro virus lost this round....
Endy:
The info about delgene could be useful to a bot too. It could constantly decrease both delgene and another variable. If it spots any unexpected returns to zero, it would know that a virus was present and trying/succeding in deleting a gene. Could even do a desperate 99 .mrepro to try and mutate the virus to death.
EricL:
I was thinking I should probably either reset .delgene independent of it's value or never reset it. I don't think the current behaviour was intentional.
What think?
Numsgil:
Resetting .delgene makes sense. But at the same time, weird issues like that can sometimes give rise to interesting solutions.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version