CloudCoders / Design-Patterns

Project for learning and discuss about design patterns
16 stars 1 forks source link

New observer implementation #54

Open frnlpz opened 7 years ago

frnlpz commented 7 years ago

Here's another example of observer pattern. In this case, the goal is to notify players in a game of roulette of changes in the category picked after the wheel has spinned.

frnlpz commented 7 years ago

Now it's much clearer! Thx @Cotel

I'm writing some tests between this evening and tomorrow.