Darwinbots Forum
Code center => Suggestions => Topic started 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.
-
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
-
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.
-
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
-
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
-
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.
-
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:
-
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:
-
yes that make sense.... in an uninteligably mind boggling sort of way.
:wacko: PY :wacko: