Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#28 tpsai-py should group at nearest planet or fleet xxx away.

Code
open
nobody
None
5
2007-08-15
2007-08-15
No

tpsai-py currently selects the nearest object which is XXX distance away. It probably makes sense to also congregate at a planet which may be closer.

The choice should be something like

nearest = choice.popclosest()
while len(choice) > 0:
if nearest is planet:
break
if distance to target from nearest > XXXX:
break
nearest = choice.popnextclosest()

Discussion