Пример #1
0
        internal static List <CustomRectangle> GetChineseSolution()
        {
            Coordinate coordinate = new Coordinate();

            var str = DruidSolution.ChineseSolution;

            str = str.Replace("\r\n", " ");
            var array = str.Split(' ');
            int count = 0;

            Console.WriteLine($"{count:D2}, , {coordinate}");
            foreach (var item in array)
            {
                count++;
                var moveType = DruidSolution.ChineseDictionary[item];

                coordinate.Action(moveType);
                //Console.WriteLine($"{count:D2}, {item}, {coordinate}");
            }

            var moves = coordinate.AllMoves;

            foreach (var item in moves)
            {
                item.MoveEast(11);
            }

            return(moves);
        }