50
« on: April 27, 2008, 07:37:24 PM »
'If there is no food then look for some randomly.
cond
*.eye5 0 =
*.refeye *.myeye = or
start
314 rnd .aimdx store
10 .up store
stop
'peripheral vision left
cond
*.eye1 0 >
start
52 .aimsx store
*.refeye *.myeye !=
stop
peripheral vision right
cond
*.eye1 9 >
*.refeye *.myeye !=
start
52 .aimdx store
stop
'if you find something chase it
cond
*.eye5 0 >
*.refnrg 3000 >
*.refeye *.myeye !=
start
*.refveldx .dx store
*.refvelup 30 add .up store
stop
'Attack the food if its strong enough but dont kill it. Let it live so you can feed on it later. Though bigger bots may accidentally kill prey.
cond
*.eye5 50 >
*.refnrg 3000 >
*.refeye *.myeye !=
start
16 .shootval store
-1 .shoot store
*.refvelup .up store
stop
'poop
cond
*.waste 200 >
start
.backshot inc
-4 .shoot store
*.waste .shootval store
stop
'if you find something that isnt food (a relative) heal it if it needs
cond
*.eye5 50 >
*.refeye *.myeye =
*.refnrg 5000 <
*.nrg 5000 >
start
-2 .shoot store
stop
'if you get huge reproduce
cond
*.body 20000 >
start
40 .repro store
stop
'if you find a strong relative kill it (to control population)
cond
*.eye5 50 >
*.refeye *.myeye =
*.refnrg 10000 >
start
-1 .shoot store
stop
end
this bot is built around helping its species as a whole. it preserves food, heals the weak, kills the rich. its really kind of a communist actually...
it has peripheral vision to make it an effective hunter. but it lacks shells poisons venom or ties or any of that advanced stuff. it does very well against any packaged bots from previous versions and is the best bot I've made so far.
its biggest problem is it has a high tendancy to get this nasty mutational disease. it takes out the breeding condition causing it to breed itself to death and all the offspring breed. it locks up the program very quickly. if you turn off mutations you'll be amazed as its effectiveness though.