Author Topic: Mythos(SS)(bacillus)14/01/10  (Read 4117 times)

Offline bacillus

  • Bot Overlord
  • ****
  • Posts: 907
    • View Profile
Mythos(SS)(bacillus)14/01/10
« on: January 13, 2010, 07:13:26 PM »
I tried to iron out the glitches in Dominis, my last SS bot, but a new one came up: The bot shuts down after its body level drops below 50. Any help on this would be much appreciated.

Code: [Select]
'Mythos
'The new Single-Store bot by Bacillus

def threshold 1000

start

100
*.body 50 sub sgn 0 floor -- abs mult

0 628 rnd
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor
 *.eye5 30 sub sgn 0 floor mult
 *.eye5 sgn
 *.myeye *.refeye sub sgn abs -- abs mult
 add sgn mult
add

 
30
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor mult
 *.eye5 30 sub sgn 0 floor -- abs mult
 add


-6
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.myeye *.refeye sub sgn abs mult
 *.eye5 40 sub sgn 0 floor mult
add

-60
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.eye5 sgn -- abs mult
 *.eye9 sgn mult
add

40 *.velup sub
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.eye5 sgn -- abs mult
 *.eye9 sgn -- abs mult
add

50 *.eye5 sub 0 floor *.velup sub
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.myeye *.refeye sub sgn abs mult
 *.eye5 sgn abs mult
 *.eye5 40 sub sgn 0 floor -- abs mult
add

.strbody
*.body 50 sub sgn 0 floor -- abs mult

.aimdx
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor
 *.eye5 30 sub sgn 0 floor mult
 *.eye5 sgn
 *.myeye *.refeye sub sgn abs -- abs mult
 add sgn mult
add

.repro
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor mult
 *.eye5 30 sub sgn 0 floor -- abs mult
 add

.shoot
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.myeye *.refeye sub sgn abs mult
 *.eye5 40 sub sgn 0 floor mult
add

.aimsx
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.eye5 sgn -- abs mult
 *.eye9 sgn mult
add

.up
*.body 50 sub sgn 0 floor mult
 *.nrg .threshold sub sgn 0 floor -- abs mult
 *.eye5 sgn -- abs
 *.eye9 sgn -- abs mult
 *.myeye *.refeye sub sgn abs
 *.eye5 sgn abs mult
 *.eye5 40 sub sgn 0 floor -- abs mult
 add sgn mult
add

store
stop
"They laughed at Columbus, they laughed at Fulton, they laughed at the Wright brothers. But they also laughed at Bozo the Clown."
- Carl Sagan

Offline Moonfisher

  • Bot Overlord
  • ****
  • Posts: 592
    • View Profile
Mythos(SS)(bacillus)14/01/10
« Reply #1 on: January 14, 2010, 12:49:14 PM »
Sweet, some content for the SS league
From my experience the rnd operator doesn't work as described, it only uses the first value from the int stack and pushes back the rnd value. If this is true you would be pushing 0 into strbody when trying to grow...
« Last Edit: January 14, 2010, 12:52:03 PM by Moonfisher »