Esempio n. 1
0
        public void SetupBase()
        {
            var builder = new CommandInterpreterServiceBuilder();

            _service  = builder.GetCommandInterpreterService();
            _commands = new List <string>();
        }
        static async Task Main(string[] args)
        {
            Console.WriteLine("Welcome robot system!");
            PrintInstrunctions();
            var builder = new CommandInterpreterServiceBuilder();
            var service = builder.GetCommandInterpreterService();

            while (true)
            {
                var result = await service.Execute(Console.ReadLine());

                if (result != null && result.HasPoistionOutput)
                {
                    Console.WriteLine(result.Position);
                }
            }
        }