Esempio n. 1
0
        public void Run()
        {
            var wireData1 = _dataProvider.Read();
            var wireData2 = _dataProvider.Read();

            var wire1 = WireFactory.CreateWire(wireData1);
            var wire2 = WireFactory.CreateWire(wireData2);

            var steps = wire1.StepsToClosestIntersection(wire2);

            Console.WriteLine($"Steps to quickest intersection is {steps}");
        }
Esempio n. 2
0
        public void Run()
        {
            var wireData1 = _dataProvider.Read();
            var wireData2 = _dataProvider.Read();

            var wire1 = WireFactory.CreateWire(wireData1);
            var wire2 = WireFactory.CreateWire(wireData2);

            var distance = wire1.DistanceToClosestIntersection(wire2);

            Console.WriteLine($"Wires closest intersection is {distance}");
        }