-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strategy Design Pattern #45
Comments
Do we want to bother with this? The structure we have in place now would enable this to be done (I think), but it's still a fair amount of work as all the existing strategies would have to change. In the short term, the main advantage would be to allow tournaments with more than one player executing the same strategy. If that's of interest, then I'll have a crack at it. |
But this can already be done right?
Am I missing something? Nice to keep this as an optional thing for once we've packaged this so people can run their own tournaments... |
True. Doesn't seem worth the effort at the moment, then. Probably one to bear in mind in the run up to djangocon, if this gets in as a sprint. |
Implement the strategy design pattern described here: https://en.wikipedia.org/wiki/Strategy_pattern
This would:
Both a function and a class based example of how the pattern might be implemented in Python are described here: http://codereview.stackexchange.com/questions/20718/strategy-design-pattern-with-various-duck-type-classes
The text was updated successfully, but these errors were encountered: