Code center > Darwinbots3

IRL DNA

<< < (3/3)

ikke:

--- Quote from: Numsgil ---
--- Code: ---given visible objects, sort based on distance
for each visible object in sorted list
call appropriate reaction codule
--- End code ---

--- End quote ---
Not within a single cycle, but I think it is realistic that a bot stores info for an object it focus in its memory, and then shifts focus. It can then compare by traditional means things it deems relevant. For instance: you say you want to sort by distance, but what if I want to sort by threat level based on refkills, or distance over relative speed?
There are two main differences:
1) in this solution it takes more cycles to assess al objects and
2) the number of objects assessed / parameters stored is not open ended but predetermined by DNA.
I think both properties are as they should be

Numsgil:

--- Quote from: ikke ---
--- Quote from: Numsgil ---
--- Code: ---given visible objects, sort based on distance
 for each visible object in sorted list
 call appropriate reaction codule
--- End code ---

--- End quote ---
Not within a single cycle, but I think it is realistic that a bot stores info for an object it focus in its memory, and then shifts focus. It can then compare by traditional means things it deems relevant. For instance: you say you want to sort by distance, but what if I want to sort by threat level based on refkills, or distance over relative speed?
There are two main differences:
1) in this solution it takes more cycles to assess al objects and
2) the number of objects assessed / parameters stored is not open ended but predetermined by DNA.
I think both properties are as they should be


--- End quote ---

The problem is that I'm working to make vision work using apparent magnitude.  So you can potentially see infinitely far away if the object you're looking at is infinitely big (or if it's an infinitely sized cluster of smaller objects, like a veggie colony).  See vision.

Which means that the number of things to cycle through in your vision is potentially quite large.  You are right about maybe wanting to sort across different criteria, though.  Another option is to not sort it at all, and run the codule simultaneously for each visible object.  Then the problem becomes how to sort between conflicting information.

Navigation

[0] Message Index

[*] Previous page

Go to full version