Esempio n. 1
0
    private static void Main(string[] args)
    {
        int[] inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        var   light  = new Light(inputs[0], inputs[1]);
        var   thor   = new Thor(inputs[2], inputs[3]);

        while (true)
        {
            thor.Move(light);
            thor.TellDirection();
        }
    }
Esempio n. 2
0
    private static void Main(string[] args)
    {
        int[] inputs = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
        var light = new Light(inputs[0], inputs[1]);
        var thor = new Thor(inputs[2], inputs[3]);

        while (true)
        {
            thor.Move(light);
            thor.TellDirection();
        }
    }