Darwinbots Forum
Bots and Simulations => Bot Tavern => Topic started by: frankle on December 18, 2006, 12:13:45 PM
-
Hey, I didn't see this anywhere else on the forums, so I thought I'd ask here:
What ways do you use, or can think of, to make a bot kill itself?
Here's the gene I'm using.
cond
' whatever, usually detecting if dna length has changed to prevent add/del mutations
start
1 .delgene store
stop
This gene recursively deletes the bot's DNA, effectively making it a corpse.
-
The easiest way is to expell all the energy in the bot with energy shots:
' let the bot die at age 5000
cond
*.robage 5000 >
start
-2 .shoot store
*.nrg .shootval store
stop
Biological equivalent (http://www.google.nl/search?hl=nl&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=XbM&q=define%3A+apoptosis&btnG=Zoeken&meta=) of these things.
-
I used something similar when I was working on a sequel to Helios, I made it that if a single bot didn't have enough energy to reproduce into a MB, it would launch itself at the nearest MB and release all its energy, a kind of altruistic suicide.
-
I'm so not going to say the fastest way to kill another bot.