Author Topic: SUPER VIRUS  (Read 927 times)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
    • DJ Paul Kononov
SUPER VIRUS
« on: July 21, 2013, 03:59:12 PM »
Been playing around with virus and created this little snip:

Code: [Select]
'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.

Offline PhiNotPi

  • Bot Builder
  • **
  • Posts: 64
    • View Profile
Re: SUPER VIRUS
« Reply #1 on: February 07, 2014, 09:43:37 PM »
If I wrote this correctly, then I believe that the following code snippet combines all three of those genes into one:

Code: [Select]
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.
I am biased neither towards nor against any single mathematical constant.