Darwinbots Forum

Bots and Simulations => Bestiary => Interesting behaviour bots => Topic started by: bacillus on March 19, 2008, 01:18:59 AM

Title: Toxica Occurus
Post by: bacillus on March 19, 2008, 01:18:59 AM
One of my earlier bots; T. Occurus tries to swarm out the map and spread its -1 shot countering virus spread as fast as possible.
Code: [Select]
cond
 *.robage 0 =
start
 7 989 store
stop

cond
 *.vtimer 0 =
start
 3 .mkvirus store
stop

cond
 7 *989 !=
start
 *.thisgene 1 rnd 2 mult -1 add add .delgene store
 50 .shootval store
 7 .ploc store
 50 .mkpoison store
stop

cond
 *.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
 50 .vshoot store
stop

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
 10 .mkvenom store
 *.myeye .venval store
 708 .vloc store
 10 .shootval store
 -3 .shoot store
stop

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-6 .shoot store
 *.refvelup .up store
stop

cond
 *.eye5 0 =
 *.refeye *.myeye = or
start
 314 rnd .aimdx store
stop

cond
 *.nrg 2500 >
start
 50 .repro store
stop

cond
 *.waste 40 >
 *.eye5 50 <
start
 *.waste .shootval store
 -4 .shoot store
stop

cond
 *.numties 0 >
start
 *.prestie .deltie store
stop

end