Bots and Simulations > The Gene depository
End All DNA defense
Numsgil:
Hey guys, this is the start of an end-all virus protection gene.
--- Code: ---'end-all protection
cond
*.repro 0 !=
*.mrepro 0 != or
*.sexrepro 0 != or
*.delgene 0 != or
*.shoot -2 =
start
0 .repro store
0 .mrepro 0 store
0 .sexrepro store
0 .delgene store
0 .shoot store
stop
--- End code ---
Obviously your repro gene will need to come after this for it to work. Add improvements yourself, post the new version.
In the end we should have a single gene to protect against the more devestating viral attacks.
Anonomous Guest Person:
--- Code: ---'end-all protection
cond
*.repro 0 !=
*.mrepro 0 != or
*.sexrepro 0 != or
*.delgene 0 != or
*.shoot -2 = or
start
0 .repro store
0 .mrepro 0 store
0 .sexrepro store
0 .delgene store
0 .shoot store
stop
--- End code ---
There. I fixed a condition. <_<
But it might be, and probably is, better to simply make seperate defense genes.
Such as:
--- Code: ---cond
*.shoot 2 =
start
.shoot dup inc inc
stop
--- End code ---
and
--- Code: ---cond
.delgene 0 !=
start
0 .delgene store
stop
--- End code ---
That way you don't spend so much energy when a single thing goes wrong.
Numsgil:
The only problem with adding seperate genes is that it increases the chances that a virus will be inserted before the virus blocking gene, rendering it useless.
And their are so many things to guard against in the end you could have 20+ genes.
But if you can think of some fancy stack manipulations to stop from storing things that don't need to be stored, then so much the better! It certainly doesn't need to be readable.
Here's my next revision:
--- Code: ---cond
*.repro 0 !=
*.mrepro 0 != or
*.sexrepro 0 != or
*.delgene 0 != or
*.shoot -2 = or
*.fixed 1 = or 'this one can be deleted if you need to
start
0 .repro store
0 .mrepro 0 store
0 .sexrepro store
0 .delgene store
0 .shoot store
0 .fixpos store
stop
--- End code ---
Endy:
Still won't work against everything, it would be simple to attack the conditions themselves. Storing a value of 32000 in nrg, 0 in eye5, or 0 in robage would wreck the bot just as quickly.
Unfortunately there is no easy way for the bots to tell if the variable is correct or if another gene changed it. :(
Endy ;)
Numsgil:
Okay, okay, problems aside, I'm willing to give it a go. Point is to make a gene that's easy to copy and paste and protect against the more devestating attacks.
Navigation
[0] Message Index
[#] Next page
Go to full version