Exemple #1
0
        public static void SetMapGrid(IPlanet planet, string input)
        {
            string[] mapDetail = input.Split(' ');
            int      x         = 0;
            int      y         = 0;

            if (int.TryParse(mapDetail[0], out x) && int.TryParse(mapDetail[1], out y))
            {
                planet.SetMap(x, y);
            }
        }