Darwinbots Forum

Code center => Suggestions => Topic started by: Zelos on March 12, 2005, 05:36:23 AM

Title: .botcount
Post by: Zelos on March 12, 2005, 05:36:23 AM
wouldnt it be a good idea to make the bot count the amount of bots it see? I think it would. in that way the bots can decied what angel to turn to based on the amount of bots it see inĀ“that angel. a idea for code could be .botcount1-9, like the .eye1-9 .botcount1 would count the amount of bots .eye1 sees and .botcount9 for eye9, you get the picture.
Title: .botcount
Post by: PurpleYouko on March 14, 2005, 09:03:13 AM
It would be nice but it would probably be so memory intensive that the whole program would come to a virtual standstill.
At least it would under the present system. A new form of eye readbacks could possibly be developed but it would be tricky.

 :D  PY  :D
Title: .botcount
Post by: Numsgil on March 14, 2005, 09:24:31 AM
It wouldn't be too much harder, it would just mean adding an increment to count whenever one bot replaces another or is prempted by a closer bot.

Logistics aside, I think this would be unrealistic.  If you have a line 36 bots deep that are all lined up relative to your bot, you shouldn't be able to tell if there's 36 or 1.  You just see a large blob in eyecell X.
Title: .botcount
Post by: PurpleYouko on March 14, 2005, 10:10:22 AM
You have a point there.

I don't think you are looking at it the same way that I was though.
The incremental counter would work fine for robots replacing each other in a particular eyecell but I think Zelos was suggesting a way to see bot density at a given time in a given eye instead of just the closest one.

Of course I may be wrong though.

 :D  PY  :D
Title: .botcount
Post by: PurpleYouko on March 14, 2005, 10:11:44 AM
And to do that you would have to be able to calculate which ones are eclipsed by closer ones so it would involve a whole lot of math

 :D  PY  :D
Title: .botcount
Post by: Numsgil on March 14, 2005, 11:04:18 AM
Bots eclisping others are already figured out when the eye cells update.  So yeah, you're right, it is complicated.  But we're doing it already, so it's not too bad.
Title: .botcount
Post by: PurpleYouko on March 14, 2005, 11:54:08 AM
Hadn't actually looked at that bit of code much.

Why are we actually bothering to do that when all we need is the closest one?

 :rolleyes:  PY  :rolleyes:
Title: .botcount
Post by: Numsgil on March 14, 2005, 12:30:44 PM
The closest bot may not be visible.  And what's closer in eyecell 4 might not be visible from eye cell 3.  Believe me, I've gone over the code till my head hurts. :cuss:
Title: .botcount
Post by: PurpleYouko on March 14, 2005, 12:32:24 PM
yes that make sense.... in an uninteligably mind boggling sort of way.

 :wacko:  PY  :wacko: