Bots and Simulations > Interesting behaviour bots

Communitus_Friendlius

(1/7) > >>

Gambit:
'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.

bacillus:
A very good bot, although you may need some body control in there.Try this:
*.nrg 3 div *.body sub dup .strbody store - .fdbody store
this makes sure body:nrg is always in a 1:3 ratio.

Gambit:
but I like em big.
and they only reproduce at 20000 body. thier body cuts in almost half after breeding


any idea how to make them less suseptable to that mutation I mentioned? they mutate changing the > symbol to a <

then the babies have babies and so on and it just goes nuts like 10k bots in a little cluster and it locks up.

bacillus:
One way would be to note down the DNA length, then use the condition *.dnalen number != to self-destruct any bot that mutated lengthwise. Another option would be to self-destruct when something happens that shouldn't happen
Having only big bots reproduce in such a social bot might seem like a bad idea because a.) There wouldn't be much to share nrg with and b.)Body only builds up automatically when nrg level is 32000, so if a bot comes along and starts eating yours, it'll never reproduce. It happens often that a huge bot will pop because it runs out of nrg, even though so much is stored in body mass.

Gambit:
OOOH!
whats the self destruct command!?!?....erm...please... lol

I wanted something like that originally. so that they produce 1 big offspring and die. I kinda wanted them to be single celled humans... sorta


and I'm okay with them popping. they limit thier own population that way. its designed to prolong the race. not much care for individuals.

Navigation

[0] Message Index

[#] Next page

Go to full version