Bots and Simulations > EcoSim Bots

My Evo Bots (Evo)(Shen)-11.04.05

(1/1)

Shen:
' This bot is for Evolution sims. It attacks everything except its children but
' is otherwise fairly basic. Use the attached Settings File for best results

def newmom 50

' - Birth -
cond
    *.robage 0 =
start
  .newmom inc
stop

cond
    *.newmom 0 >
start
  .newmom inc
stop

cond
    *.newmom 200 =
start
  0 .newmom store
stop

cond
    *.nrg 10000 >
start
  30 rnd 20 add .repro store
  1 .newmom store
stop


' - Avoid Babies -
cond
    *.eye5 0 >
    *.newmom 0 >
start
  400 .aimsx store
stop


' - Move -
cond
    *.vel 10 <
    *.eye5 50 <
start
  5 .up store
  40 80 rnd sub .aimsx store
stop

' - Eye -
cond
    *.eye2 *.eye8 >
    *.eye5 0 =
start
  100 .aimsx store
  10 .sx store
stop

' - Eye -
cond
    *.eye8 *.eye2 >
    *.eye5 0 =
start
  -100 .aimsx store
  -10 .sx store
stop

' - Eat -
cond
    *.newmom 0 =
    *.eye5 40 >=
start
  -1 .shoot store
stop


end

PurpleYouko:
Please note that this is a settings file in Shen's post. If you want to run the sim you will have to first save the robot file then rename the settings file with a .set name extension.
After that you will need to delete the alga and the robot from the set and re-enter them or the program will most likely crash.

Here is a text file for Shen's robot.

Navigation

[0] Message Index

Go to full version