Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: NotLegalTender on January 16, 2014, 11:21:36 PM

Title: How can a bot tell if another bot is dead?
Post by: NotLegalTender on January 16, 2014, 11:21:36 PM
I had a few ideas in mind for a bot, two of which would require this. The first is a parasitic algae that attaches to other bots and feeds through ties until it has gained enough energy to produce chloroplasts, and the other is a corpse feeder. How can a bot tell if another bot is dead, if this is possible?
Title: Re: How can a bot tell if another bot is dead?
Post by: Numsgil on January 17, 2014, 03:01:04 AM
Dead bots should have 0 nrg.  You'll also want to test the type as well if you don't want them to try feeding on walls :)
Title: Re: How can a bot tell if another bot is dead?
Post by: NotLegalTender on January 17, 2014, 09:44:47 PM
I'm working on the parasitic algae currently.  I kinda need help doing this part. Is there a tutorial on how to make your bot check the stats of another bot?
Title: Re: How can a bot tell if another bot is dead?
Post by: NotLegalTender on January 17, 2014, 09:54:55 PM
Alright, I think I got it.

cond
224 *.in1 !=
.refnrg 0 =
start
-20. up store
stop

The bot stores 224 as a way to recoginize conspecs, so it does not tie to conspecs.

I'm gonna try and figure out how to make it so it deletes chloroplasts before it birthes, and how to set a specific amount of nrg in each offspring.