Bots and Simulations > Mutations

Simple Start Bot

(1/1)

PurpleYouko:
'Simplebot2 starter
'Gene1. Simple search pattern.
cond
  *.eye3 *.eye5 >
start
  -25 .aimdx store
stop

' Gene2. Simple search pattern part 2
cond
  *.eye7 *.eye5 >
start
  25 .aimdx store
stop

' Gene 3 Don't orbit
cond
*.veldx 0 !=
start
*.veldx 2 div .sx store
stop

' Gene 4. Move forward
cond
*.vel 20 <
start
  5 .up store
stop

' Gene 5. Shoot the food
cond
  *.eye5 40 >
start
  -1 .shoot store
stop

' Gene 6. Reproduce
cond
  *.nrg 5000 >
start
  50 .repro store
stop

' Gene 7 Avoid conspecs
cond
*.eye5 !=
*.myeye *.refeye =
start
120 .aimdx store
stop

end

Navigation

[0] Message Index

Go to full version