Darwinbots Forum
Bots and Simulations => DNA - General => The Gene depository => Topic started by: Botsareus on July 21, 2013, 03:59:12 PM
-
Been playing around with virus and created this little snip:
'this code here is designed to distroy slime
cond
*.robage 2 mod 0 =
start
4 .tie store
stop
cond
*.robage 2 mod 1 =
start
4 .deltie store
stop
'note make sure the virus gene is at the buttom of the dna, I found out that
'the further down a virus gene is the more power it has vs slime
cond
start
1 .vshoot store
*.thisgene .mkvirus store
stop
end
It will be nice to code the 'slime obliterator' as part of the virus gene, but my knowledge of SS bots is very limited.
-
If I wrote this correctly, then I believe that the following code snippet combines all three of those genes into one:
cond
start
1 .vshoot store
*.thisgene .mkvirus store
4 *.robage 2 mod 137 mult .tie add store
stop
end
This takes advantage of the fact that .tie is 330 while .deltie is 467, a difference of 137.