Ejemplo n.º 1
0
        private static void PrintDriving()
        {
            PrintCurrentTrafficSignal();
            GetNextDirection();

            while (signal.signalLight != TrafficLightSignal.LeftTurnGreen && signal.signalLight != TrafficLightSignal.Green)
            {
                WaitForLight();
            }

            if (currentDirection != Directions.Left && signal.signalLight != TrafficLightSignal.Green)
            {
                WaitForLight();
            }

            ProcessUserInput();
            signal.GetNextTrafficLightSignal();
        }