This was was homework exercise, task for this exercise was to implement STATE pattern Idea was to implements states that will change lights on Trafic-Light. In this version of code there are also OBSERVER pattern, Singleton pattern Process of changing lights is automatized using Thread class. To start this app, just run Main class. Here are intervals for each ligh: RED 7sec, RED/YELLOW 3sec, GREEN 5sec, YELLOW 3sec.
This project is licensed under the MIT License - see the LICENSE file for details.