Britbot
double Britbot.EnemyGroup.MinimalETATo ( Location  location) [inline]

Gets the minimal number of turns for the group to reach the given location.

Parameters:
locationthe location tested
Returns:
minimal number of turns till the group gets to the location

Definition at line 433 of file EnemyGroup.cs.

        {
            double min = Bot.Game.GetCols() + Bot.Game.GetRows();
            foreach (int pirate in EnemyPirates)
            {
                if (Bot.Game.Distance(location, this.GetLocation()) < min)
                    min = Bot.Game.EuclidianDistanceSquared(location, this.GetLocation());
            }
            return min;
        }