Bots and Simulations > Bot Tavern
Building a catch-eye bot
MacadamiaNuts:
I think it would be good if we built a bot with the only purpose of showing interesting behaviours. Then put it in the default download with a nice background pic so it catches the eye for DB newcomers.
So, I open this thread to considerate genes that could produce those interesting behaviour. Later we can pick some of these and mashup them in some bots.
Self evolving bot ID gene
This gene makes the bots using out1 for ID fight occasionally.
cond
*.robage 1 =
start
*971 2 rnd 1 sub add 971 store
*971 *.out1 store
stop
Tailing
Bots that tail each other instead of avoid conspecs are always fun to watch. So no conspec check there.
I'm working on a better "follow the mass" gene.
cond
*.eye5 0 >
*.eye5 90 <
start
*.refxpos *.refypos angle .setaim store
stop
MacadamiaNuts:
I put it in a pack bot.
Start with 50 of these and let them go one thousand cycles on a decent sized toroidal sim.
--- Code: ---'Name: Fishy 1.0
'Author: MacadamiaNuts 11 June 2007
'Description: Turn your simulation into a fishtank!
'Watch them tailing each other and forming big masses of different size fish.
'FOLLOW THE MASS
cond
pain 0 =<
start
-10 *.eye9 sgn mult
-10 *.eye8 sgn mult add
-10 *.eye7 sgn mult add
-10 *.eye6 sgn mult add
10 *.eye4 sgn mult add
10 *.eye3 sgn mult add
10 *.eye2 sgn mult add
10 *.eye1 sgn mult add
*.aim add 1256 mod .setaim store
50 *.velup sub .up store
0 .fixpos store
stop
'MATCH SPEED
cond
*.eye5 0 >
start
50 *.velup sub .up store
*.refveldx .dx store
0 .fixpos store
stop
'MATCH DIRECTION
cond
*.eye5 0 >
*.refeye *.myeye =
start
*.refaim *.aim sub 2 div *.aim add .setaim store
stop
'FEED
cond
*.eye5 50 >
*.refeye *.myeye !=
start
-6 .shoot store
stop
'STOP FOR FEEDING
cond
*.eye5 65 >
*.refeye *.myeye !=
start
1 .fixpos store
stop
'DO LOTS OF LITTLE FISHIES
cond
*.nrg 30000 >
start
1256 rnd .setaim store
5 .repro store
stop
'MAINTENANCE AND EDGE CHECK
cond
start
*.nrg 10 div *.body sub .strbody store
*.body 10 mult *.nrg sub .fdbody store
*.waste .shootval *.waste 100 div abs mult store
-4 .shoot *.waste 100 div abs mult store
628 .aimdx *.edge mult store
stop
--- End code ---
What would you add to it?
Jez:
Breaking ties by overextending, use of fixpos for stopping, parallel search pattern (all bots move in same direction when searching although that rather makes following a bit redundant). How about rotating the eyes rather than rotating the bot.
Maybe think of some other things later.
Numsgil:
I think an ant bot that ran well on on the current version would be neat.
abyaly:
Oh! there was a gene I accidentally made once that created really pretty patterns. lemme see if I can find it or recreate it.
Navigation
[0] Message Index
[#] Next page
Go to full version