ulope / planetwars-python-kit

An python interface to the second Google AI-Contest (PlanetWars) at http://ai-contest.com
16 stars 12 forks source link

Always keep fleet information up-to-date #3

Closed RainCT closed 14 years ago

RainCT commented 14 years ago

Currently sending a fleet updates the count of ships remaining on the origin planet, but it doesn't add it to the fleets list.

So if you're using something like for example the in_future() from http://github.com/simu/planetwars-python-kit the result will be incorrect if it is requested after sending a fleet to a planet within the same turn.

ulope commented 14 years ago

Awesome. I've wanted to add this myself but haven't gotten 'round to it yet.

There is a small bug in that it doesn't add fleets if you pass a set of destinations, but I'm going to fix that in my repo so you can pull it back.

ulope commented 14 years ago

Ok. I've merged your changes.