Bots and Simulations > The Gene depository

Enemy Evaluation

(1/2) > >>

Tj3:
This is a cool way to evaluate enemies I figured out. It is a simple way to determine whether you or the enemy has more kills. It takes age into account, also.

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']cond
*.robage *.kills div *.refage *.refkills div <
start
'attack code
else
*.maxvel .dn store
stop

ikke:
I was thinking of exactly the same condition as gene for sexual selection. Haven't got time to do it actually, though

Houshalter:
But i did. Unfortunatley its saved on my other computer.  

It was going to be part of my clanbot project. I might have some time tommorow to finish it.

ashton15:

--- Quote from: Tj3 ---This is a cool way to evaluate enemies I figured out. It is a simple way to determine whether you or the enemy has more kills. It takes age into account, also.


--- Code: ---cond
*.robage *.kills div *.refage *.refkills div <
start
'attack code
else
*.maxvel .dn store
stop

--- End code ---

--- End quote ---

I like it but what if the others are genrally uncommon yet very strong. An example in nature is when a lone hornet is scouting for bee's nests. If the bees avoid it the hornet would come back with about 30. though if they attack they may be weaker individually though as they outnumber the hornet many thousands to one they can swarm it so it overheats and dies. If in darwinbots a bot runs away the other bot can easily reproduce and attack with more. If you could modify the gene to analyze wether the collective power of multiple bots still can't defat it then it might be a good idea to flee. Also you might be fleeing from an enemy which is extremly good at eating plants, but really he's quite friendly in actuality... Hope I helped! 

bacillus:
A bot can spend a lot of time killing a lot of veggies without being tough; I think you should include nrg, body, poison, venom, slime and shell into the equation, as these require constant rebuilding and take a lot of nrg o keep up, so stronger bots will produce more of these.

Navigation

[0] Message Index

[#] Next page

Go to full version