Darwinbots Forum
Bots and Simulations => Bestiary => F2 bots => Topic started by: Elite on March 10, 2007, 01:00:18 PM
-
' SWARM
' (Updated for v2.43)
' Delete birthtie and move
cond
start
.tie 1 *.robage sub 0 floor mult inc
.deltie inc
*.maxvel *.vel sub .up store
stop
' Set eye5
cond
*.robage 0 =
start
1220 .eye5width store
stop
' Swarm
cond
*.robage 5 mod 0 =
*.eye5 0 >
*.refeye *.myeye =
start
*.refaim .setaim *.robage sgn mult store
stop
' Eat food
cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refvelup 50 add .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop
cond
*.eye5 50 >
*.refeye *.myeye !=
start
*.refvelup .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop
cond
*.eye6 34 >
*.refeye *.myeye !=
start
-6 .shoot store
16 .shootval store
stop
' Reproduce
cond
*.body 700 >
start
30 .repro store
314 rnd .aimdx store
stop
' Feed on and store body
cond
*.nrg 2000 >
start
100 .strbody store
stop
cond
*.nrg 500 <
start
*.body 0 floor .fdbody *.body sgn mult store
stop
' Anti-virus (just in case)
cond
*.mkvirus 0 !=
start
*.mkvirus .delgene store
stop
end
-
Postion 11, v nice. It is a bit of a spin doctor though, never a trait liked by Joe Public! If you updated it a bit further by adding something like ‘*.veldx .sx store’ to each gene that uses .up then you’ll not only get a better visual appreciation of its swarm ability but it should then get to position 7, beneath Bubbles.
Should I wait for a further update or file and run in league as it is?