Author Topic: EvoFarmer  (Read 3214 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
EvoFarmer
« on: May 20, 2005, 03:18:38 AM »
' Evo Farmer
' Designed for Evo Sims, most code made with rnd mutations in mind
' waits for refage to inc helps out with Cannibotism and ofen allows plants to inc in
' population before being eaten

' figured out method to help ensure bots deltie at birth properly by coupling child's
' actions by having parent perform similarly.
' Very slow bot don't expect it to make any long distance trips : )
cond
start
.fixpos *.fixed mult dec
' below added to allow testing against near family
*.eye5 dup sub dec
*.eye5 dup sub dec
stop

cond
*.eye5 40 >
*.refage 20 >
*.refeye *.myeye !=
start
-1 .shoot *.robage dup div mult *.refage dup div mult store
stop

cond
*.robage 0 =
*.refage 0 = or
start
.tie inc
stop

cond
*.robage 1 =
*.tiepres 1 = or
start
.deltie inc
stop

cond
10 *.vel >
*.eye5 0 >
*.refeye *.myeye !=
start
10 *.vel sub 2 div .up store
stop

' I think I got the rotation commands from one of PY's bots, not sure anymore

cond
start
mult 0
stop

cond
*.eye2 *.eye8 !=
*.eye5 0 =
start
mult *.eye2 *.eye8 sub 2 div
stop

cond
*.eye3 *.eye5 !=
start
mult *.eye3 *.eye5 sub
stop

cond
*.eye7 *.eye5 !=
start
mult *.eye5 *.eye7 sub
stop

cond
*.refeye *.myeye =
*.eye5 0 = or
start
mult 324 rnd
stop

cond
*.nrg 10000 >
start
.repro inc
mult 300
stop

cond
start
.aimsx store
stop
end