Bots and Simulations > Evolution and Internet Sharing Sims
Survival-of-the-fittest evobot
Elite:
Had an idea for a new Evotbot.
The bot spends about 1000 cycles building up 20000 energy. It then fixes.
When it's fixed it spins and repros uncontrollably (and dies), producing many, many offspring.
All the offspring compete to the death and the fittest few survive. Lame bots do not survive.
I'm doing some fine tuning at the moment. Here's the prototype so far:
--- Code: ---' Shoot
cond
*.eye5 0 !=
start
-6 .shoot store
stop
' Move
cond
*.eye5 0 !=
start
20 .up store
stop
' Spin
cond
*.eye5 0 =
start
314 rnd .aimdx store
stop
' Activate repro mode!
cond
*.nrg 20000 >
start
1 .fixpos store
stop
' Repro and spin ... get dizzy ...
cond
*.fixed 0 !=
start
314 rnd .aimdx store
10 .repro store
32000 .tielen1 store
stop
' Unfix if fixed and not at repro age
cond
*.fixed 0 !=
*.robage 1000 <
start
.fixpos dec
stop
end
--- End code ---
Feel free to have a play around and see if you can get any good results :D
Griz:
one could create a few bots with initial different # of cycles for storing before repro ...
a shorter number of cycles giving a quicker turnover, with fewer offspring ...
have a cycles/energy of 500/10000, 750/15000, 1000/20000, 1250/25000, etc ...
and run them against one another, perhaps in a league situation to see
which species has more staying power, rather than the hightest population.
looking for the ideal balance point.
Ulciscor:
Isn't this kind of going on the assumption that any of the offspring will get to the repro threshold?
Griz:
found my bots gaining energy and reproducing in the normal
manner long before they reached their 'breeding age' which
then dropped them below the energy requirement and they
continued to roam about and gain seek more food.
so I commented out the energy requirement and made
repro dependant upon age only.
' Activate repro mode!
cond
'*.nrg 20000 >
*.robage 1000 >
start
1 .fixpos store
stop
also did a *.robage 750 > and a *.robage 1250 >
[changed the 'unfix gene' as well]
called them SBD750 [StoreBreedDie], SBD1000, SBD1250
and run them off against each other.
interesting ... the 750 repros ahead of the others and more
often but of course produces fewer offspring before dying,
the 1250 taking a long time but with 60 or 70 offspring ...
and the 1000 inbetween.
did it with mutations disabled to watch the 'pure' form to see
which seems most hardy ...
but figure mutations might yeild some interesting hybreds.
fun to watch. ;)
Ulciscor:
[Griz] - doesn't making repro dependant on age mean that the bots may be born with v low energy? This seems a little unfair... although I guess bots born to a parent with high energy have a greater chance of survival than those with lower.
Navigation
[0] Message Index
[#] Next page
Go to full version