1st Simulation
My plan with this simulation is to explore how Vbody and Vrepro change over time. The sim was run using the following bot H 0.1 (5) and alga minimalis (10) under F1 conditions. As far as I know memory locations in bots cant be saved so I recorded the data by hand so to speak. I chose 5 bots, the 1 nearest each corner and the 1 nearest the center to make sure the sample was always random and then averaged the values. The data and graphs can be seen in sim1, but before you go looking at them, I want you to think about what you expect will happen to the values. Both Vbody and Vrepro start at 100 with the 1st bots, Vrepro and Vbody both determine the conditions under which the bot reproduces, Vbody also determines how big the bot becomes. So will the values remain low so that the bots can reproduce quickly or increase to improve feading? and is there an ideal value?
H 0.1
def Vbody 800
def Vrepro 801
cond
*.robage 1 =
start
1221 .eye5width store
*.in1 100 sub 200 rnd add 100 floor 10000 ceil .out1 store
*.in2 100 sub 200 rnd add 100 floor 10000 ceil .out2 store
stop
cond
*.eye5 0 >
*.myeye *.refeye !=
start
*.refxpos *.refypos angle .setaim store
-6 .shoot store
*.refveldx .dx store
*.refvelup 10 add .up store
stop
cond
*.eye5 0 =
*.myeye *.refeye = or
start
10 .up store
stop
cond
*.nrg *.body >
*.body *.Vbody <
start
*.Vbody *.body sub .strbody store
stop
cond
*.nrg *.Vrepro >
*.body *.Vbody >
start
50 .repro store
stop
2nd simulation
For the 2nd simulation I wanted to see what would happen if I upped the pressure on the H 0.1 bots. To do so I used the following modified version of alga minimalis, to increase the difficulty in getting food.
cond
*.nrg 6000 >
start
50 .repro store
15 .aimdx store
stop
cond
*.shflav 0 !=
*.robage 5 mod 3 =
start
-6 .shoot store
*.shang .aimshoot store
0 .shflav store
stop
end
3rd + 4th Simulation
For the 3rd simulation, I upped the pressure further by using
cond
*.nrg 6000 >
start
50 .repro store
15 .aimdx store
stop
cond
*.shflav 0 !=
*.robage 4 mod 2 =
start
-6 .shoot store
*.shang .aimshoot store
0 .shflav store
stop
end
unfortunately the H 0.1 bots didn't survive, so I upped the number of starting bots from 5 to 6 for simulation 4