Пример #1
0
 static void Main(string[] args)
 {
     while (true)
     {
         IVehicle roverManager = new RoverManager(1, 2, Direction.N, new Grid(5, 5));
         Console.WriteLine("Please Forward !");
         var result = roverManager.Process(Console.ReadLine());
         Console.WriteLine(result);
     }
 }
Пример #2
0
        static void Main(string[] args)
        {
            while (true)
            {
                var grid        = GetLimit();
                var coordinates = GetCoordinates();

                IVehicle roverManager = new RoverManager(coordinates.X, coordinates.Y, coordinates.Direction, grid);
                Console.WriteLine("Lütfen robotun harf katarını giriniz!");
                var result = roverManager.Process(Console.ReadLine());
                Console.WriteLine(result);
            }
        }