The aim of that puzzle is to implement a TrafficLightsSystem Using traffic lights will prevent two cars from different directions to crush. The code will be implemented in com.egencia.puzzle.crossing.infra.client.TrafficLightsSystem
- Run the CrossingApplication
- Run the TrafficLightsSystem
- Run the CarInjector
- Open the browser at http://localhost:8080
- Run the CrossingApplication
- Run the CarSender
- Open the browser at http://localhost:8080
- Open a small browser window at http://localhost:8080/sendCars.html
- Open a small browser window at http://localhost:8080/changeTrafficLight.html
In case of cars stuck on the road : ClearTraffic