Bots and Simulations > Tips and Tricks
how to make a bot go at the simulations max velocity all the time!
ashton15:
Ok I tried to implement the genes into animal minimalis to make this
--- Code: ---def drag 50
cond
*.robage 0 =
start
.tie inc
stop
cond
*.robage 1 =
start
.deltie inc
stop
cond
*.robage 1 >
*.robage 21 <
start
*.maxvel .dn store
stop
cond
*.robage 20 <
start
*.drag *.nrg add *.robage 1 sub div .drag store
stop
cond
*.robage 22 =
start
*.drag *.maxvel div .maxvel store
stop
cond
*.robage 23 >
*.eye5 0 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup *.drag add .up store
stop
cond
*.robage 23 >
*.mass 1.1 >
start
30 .repro store
stop
cond
*.robage 23 >
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
*.refvelup .up store
stop
cond
*.robage 23 >
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop
cond
*.robage 23 >
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
end
--- End code ---
and by the way here is the original
--- Code: ---cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
cond
*.mass 1.1 >
start
30 .repro store
stop
cond
*.eye5 50 >
*.refeye *.myeye !=
start
-1 .shoot store
*.refvelup .up store
stop
cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
stop
cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
end
--- End code ---
Anyways I used F1 league conditions and faced both the bots against each other, though I made one change, one batch of tests was in thick fluid (left) and the other was in thin fluid (right). The total energy graphs have been uploaded showing the results from each of the three tests which each lasted about 1k cycles, red is modified, blue is original. Overall I'd say the modification helps though it seems to give the bot slightly random behaiviour sometimes.
Numsgil:
Where are they uploaded?
ashton15:
--- Quote from: Numsgil ---Where are they uploaded?
--- End quote ---
oh opps I thought I attached them strangely though it does better in thin rather than thick fluid, by the way though I now have a better approach to this which is to use the epignematic memory locations.
Navigation
[0] Message Index
[*] Previous page
Go to full version