Exemplo n.º 1
0
        /// <summary>
        /// print turtle's starting state
        /// </summary>
        /// <param name="turtle"></param>
        public static void Print(Turtle.Library.Models.Turtle turtle)
        {
            var contextGreen = new ColorContext(new Green());

            contextGreen.ContextInterface();
            Console.WriteLine(startString.Replace("{x}", turtle.Position.X.ToString()).Replace("{y}", turtle.Position.Y.ToString()).Replace("{dir}", turtle.Direction.ToString()));
            var contextWhite = new ColorContext(new White());

            contextWhite.ContextInterface();
            Console.WriteLine(new string('-', 50));
        }