Darwinbots Forum
Bots and Simulations => Bestiary => Untagged bots => Topic started by: havingphun on October 18, 2011, 04:21:02 PM
-
Nothing really just thought that I should post a bot.
'Sporyx (F3)(HavingPhun)-10/18/11
cond
*.robage 2 <
start
.tie *.robage 1 add mult inc
.deltie inc
stop
cond
*.robage 3 <
start
60 .up store
stop
cond
*.nrg 8000 >
*.body 1000 <
start
400 *.strbody store
stop
cond
*.nrg 1000 <
*.body 600 >
start
400 *.fdbody store
stop
cond
*.myeye 0 =
start
50 .up store
stop
cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 60 add .up 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
*.pain 11 >
start
10 .repro store
10 .repro store
10 .repro store
10 .repro store
stop
cond
*.nrg 3000 >
start
30 .repro store
stop
cond
*.waste 40 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
cond
start
.fixpos *.fixed mult dec
stop
cond
*.shflav 0 !=
*.shflav -2 !=
start
1256 *.shang sub .aimshoot store
8 .shootval store
-6 .shoot store
0 .shflav store
stop
cond
*.mkvirus 0 !=
start
*.mkvirus .delgene store
stop
end
This is just the first version and it isnt very good at fighting other bots but if it is getting hurt pretty bad then it will explode into tons of little spores and they will flee away from the enemy. Any comments, suggestions, etc.
-
Any comments?
-
It looks good. There's a few things that I would change... in the "*.pain 11 >" there is no need for multiple of the "10 .repro store". The extras won't do anything as the code is completed each cycle and the values in the bot are then acted upon.
In the gene in which you fire shots at the enemy, you've missed out the "*.refveldx .dx store".
You change the value in .shootval to 8... I don't know if it resets but I don't think it does. This means that you'll still be using it like that when shooting again.
Also. I'd do all the body conditions in one gene without conditions using the mathematical methods, the conditions are expensive for a bot to complete. The waste, too, if you're aiming for it to be a fighting bot then you may not need it, unless you want it to be fighting over a long period.
A few tips also:
- include "*.refxpos *.refypos angle .setaim store"(I think it's that) is good to add to the following gene(and the attacking one, too). It makes it so much more accurate. What it does, anyway, is to face directly towards the other bots coordinates, combining it with moving at the same speed horizontally and vertically makes it so much more accurate,
- "314 rnd .aimdx store" That isn't the best way to find enemies... or to avoid friendlies, I'll let you think of another way
I think that's all I can say to help. :)
-
Ok thanks for the I took the basic genes off animal minimalis becuase i wanted to get the bot made but then improve on it.
-
Where should this go???