Пример #1
0
        /// <summary>
        /// Process all possible Starting Regions
        /// </summary>
        /// <param name="pickRegions"></param>
        public static void SetStartingRegions()
        {
            // and in each superregion
            Map.Current.StartingRegions.ForEach(r =>
            {
                r.SuperRegion.StartingRegion = r;
            }
                                                );

            // Update values
            CurrentUpdate.UpdateRegion();
            CurrentUpdate.UpdateSuperRegion();
            // CurrentUpdate.UpdateMap();
        }
Пример #2
0
        /// <summary>
        /// R05
        /// Request for the bot to return his place armies moves.
        /// </summary>
        /// <param name="parts"></param>
        public void PlaceArmies(String[] parts)
        {
            CurrentUpdate.UpdateRegion();
            CurrentUpdate.UpdateSuperRegion();
            // CurrentUpdate.UpdateMap();
            StrategySuperRegion.UpdateStrategySuperRegion();

            List <PlaceArmies> Pas = StrategyPlaceArmies.SelectPlaceArmies();

            if (Pas.Count() == 0)
            {
                Console.WriteLine("No moves");
            }
            else
            {
                Console.WriteLine(String.Join(",", Pas.Select(pa => pa.ToString())));
            }
        }