Skip to content

MiroslavKolosnjaji/Trafic-Light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Java Java-Core License: MIT GitHub forks

Trafic-Light

This mini project demonstrates the State design pattern through a traffic light simulation. Each traffic light state controlls its own behavior and transitions, showcasing how the State attern can be applied in practice.

The project also includes the Observer and Singleton patterns to manage state changes effectively. The simulation is automated using the Thread class.

To run the application, simply execute the Main class.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This is a Java core project focused on design patterns. It implements the STATE pattern to control traffic light states, with the use of OBSERVER and SINGLETON patterns. This project serves as a hands-on exercise to explore and practice design patterns in Java.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages