Author Topic: Hunter V2.16 (F2)(PY)-22.03.04  (Read 2501 times)

Offline Jez

  • Bot Overlord
  • ****
  • Posts: 788
    • View Profile
Hunter V2.16 (F2)(PY)-22.03.04
« on: January 11, 2007, 06:36:55 AM »
Code: [Select]
'Topic: Formula one bots!
'PY

'New generation Hunter bot with state of the art features
'***********************


' Initialize
' *********
cond
*.robage 0 =
start
.tie inc
19 55 store
stop

cond
*.robage 1 =
start
.deltie inc
stop

cond
*.eye5 80 <
*.refeye *55 !=
start
40 *.vel sub 2 div .up store
stop

'turn towards enemies or food
'*************************

cond
*.eye1 *.eye5 >
*.eye1 *.eye9 >
start
mult mult 120 10
stop

cond
*.eye9 *.eye5 >
*.eye9 *.eye1 >
start
mult mult -120 -10
stop

cond
*.eye3 *.eye5 >
*.eye3 *.eye7 >
start
mult mult 60 5
stop

cond
*.eye7 *.eye5 >
*.eye7 *.eye3 >
start
mult mult -60 5
stop

'avoid conspecifics
'****************************
cond
*.refeye *55 =
'*.eye5 30 >
start
mult mult 120 0
stop

cond
*.refeye *55 =
*.eye5 60 >
start
mult mult 628 0
stop

'reproduce
'*********

cond
*.nrg 2000 >
*.robage 40 <
start
50 .repro store
mult mult 628 0
stop

cond
*.nrg 4000 >
start
70 .repro store
mult mult 628 0
stop

' rotate
' *******
cond
start
.sx store
.aimsx store
stop

'shoot at enemy
'******************
cond
*.eye5 50 >
*.refeye *55 !=
start
-1 .shoot store
stop

'delete ties
'*********
cond
*.numties 0 >
*.tiepres 1 =
start
1 .deltie store
stop

cond
*.numties 0 >
start
*.tiepres .tienum store
.tieval .tieloc store
1000 .tieval store
stop

cond
*.waste 10 >
start
*.waste .strpoison store
stop

end
« Last Edit: May 09, 2014, 12:09:17 PM by Botsareus »
If you try and take a cat apart to see how it works, the first thing you have in your hands is a non-working cat.
Douglas Adams