In this project, we control a traffic light system. For that matter,
we define several simple rules.
Consider there are two traffic lights you want to control:
Light A: Controls the traffic flow between North and South.
Light B: Controls the traffic flow between West and East.
Rules:
- Each light has the ability to show three different colors (Red, Yellow, Green).
- Both lights cannot be green simultaneously.
- Both lights cannot be yellow simultaneously.
- The green color has to last for 6 seconds to let cars pass.
- The yellow color has to last for 1 second to alert drivers not to pass.