No need to make it DEs since furthest unexploreds will either end up being DEs or 0 traffic sectors... both of which you'll end up having to probe anyway.
My version of the above...
Code:
setVar $filename GAMENAME & "-Unexplored_Unfigged.txt"
delete $filename
getNearestWarps $stack STARDOCK
setVar $count $stack
while ($count > 0)
setVar $this $stack[$count]
if (SECTOR.EXPLORED[$this] <> "YES")
getSectorParameter $this "FIGSEC" $figtest
if ($figtest = FALSE)
write $filename $this
end
end
subtract $count 1
end
But if you really want to spice it up, do a getCourse out and count the number of unexploreds in each. Then sort by that count.
Code:
setVar $filename GAMENAME & "-most-unexplored.txt"
delete $filename
getNearestWarps $stack STARDOCK
setVar $max_unexp 0
setVar $count $stack
while ($count > 0)
setVar $this $stack[$count]
if (SECTOR.EXPLORED[$this] <> "YES")
getSectorParameter $this "FIGSEC" $figtest
if ($figtest = FALSE)
getCou rse $lane STARDOCK $this
setVar $unexp_cnt 0
setVar $course_idx 1
while ($course_idx <= ($lane+1))
setVar $course_test $lane[$course_idx]
if (SECTOR.EXPLORED[$course_test] <> "YES")
add $unexp_cnt 1
end
add $course_idx 1
end
add $occurances[$unexp_cnt][0] 1
setVar $occurances[$unexp_cnt][$occurances[$unexp_cnt][0]] $this
if ($unexp_cnt > $max_unexp)
setVar $max_unexp $unexp_cnt
end
end
end
subtract $count 1
end
setVar $count $max_unexp
while ($count > 0)
setVar $idx 1
while ($idx <= $occurances[$count][0])
write $filename $occurances[$count][$idx] & " " & $count
add $idx 1
end
subtract $count 1
end
The way I do it is to stack filters on top of each other. I'll output a file like this, put it into the prober and then double check for those that are unexplored as I go along, filtering those out that have already been checked.
An alternative way of doing this is to generate the first few, probe some, generate the next few, etc. The smaller your gen list the more accurate it would be, but the more time it would take to calculate.
With the avoids option it is possible now to calculate the path of a probe better... there are a number of possibilities there.
It would probably not be accurate, however, to run thru the getcourse and mark each sector as "explored" in an array... while that would certainly reduce the number of times you'd have to run this, you'd still have to make multiple passes to filter in blocked probes... and you'd still have to make it atleast a 3-pass approach or you'll end up running thru the wrong list. All in all that might be more trouble than it's worth.