Darwinbots Forum

Bots and Simulations => Bestiary => F2 bots => Topic started by: Jez on January 11, 2007, 06:52:05 AM

Title: TK Omnivore (F2)(Dan)-01.04.04
Post by: Jez on January 11, 2007, 06:52:05 AM
Code: [Select]
'Topic: I need some help 
'Dan

'simple bots expanded from simplebot1 file
'can defeat simplebot16
'(If my version is corret)


'********************
'searching

cond
*.eye1 *.eye5 >
start
mult -100
stop


cond
*.eye9 *.eye5 >
start
mult 100
stop


cond
*.eye3 *.eye5 >
start
mult -25
stop


cond
*.eye7 *.eye5 >
start
mult 25
stop


'********************
'moving


cond
*.numties 0 =
*.vel 30 <
start
30 *.vel sub 2 div .up store
stop


cond
start
.aimdx store
stop


'********************
'attacking


cond
*.eye5 40 >
*.refeye 10 !=
start
-1 .shoot store
stop


cond
*.eye5 0 >
*.refeye 9 =
start
mult 180
stop


'********************
'reproduction


cond
*40 0 >
start
mult 628
50 dec store
stop


cond
*.nrg 5000 >
start
50 .repro store
mult 628
40 inc stop
end