#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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks