Design Patterns - Strategy Pattern
The first pattern I want to talk about is the Strategy pattern, which always reminds me about the Command & Conquer games so I’ll simply use it as an example :)
First of all, the definition: "Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it."
I’m bad at remembering definitions or trying to imagine what they really mean, so let’s just go ahead and try to create something and learn as we go, eventually we’ll end up implementing the Strategy pattern and you’ll 'get it' for the rest of your life, without a definition.
Read more at http://blog.cumps.be/design-patterns-strategy-pattern/