Beispiel #1
0
        static void Main()
        {
            Plateau plateau = PlateauParameters.PlateauCreator();
            Rover   rover1  = RoverParameters.RoverCreator(plateau);

            rover1.Command(Command.ReturnCommand());
            Rover rover2 = RoverParameters.RoverCreator(plateau);

            rover2.Command(Command.ReturnCommand());
            rover1.Position();
            rover2.Position();
            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Harita Boyutu: 5X5");
            Console.WriteLine("Mevcut Konum: ");
            Console.WriteLine("0 0 N");
            Rover firstRover = new Rover(0, 0, Rover.Direction.N, new Plateau(5, 5));

            Console.WriteLine("Yönlendirme Yapınız.");
            firstRover.Command(Console.ReadLine());
            Console.WriteLine(Environment.NewLine);
            Console.WriteLine("Yeni Konum: ");
            firstRover.GetPosition();
            Console.ReadLine();
        }