Ejemplo n.º 1
0
        public void Navigate(char[] instructions)
        {
            foreach (var instruction in instructions)
            {
                switch (instruction)
                {
                case 'M':
                    RoverNavigator.Navigate();
                    break;

                case 'L':
                    RoverRotator.Turn("L");
                    break;

                case 'R':
                    RoverRotator.Turn("R");
                    break;
                }
                ;
            }
        }