iI have implemented some sort of the strategy pattern using an abstract class and an interface :
CardVariables
is just a class where iI keep some variables used in the calculates down below. I dontdon't think there's point in showing it here..
There are a few derived methods imI'm not going to show they're entire content inentirely here because they are quite similar to one another.
Ok so nowNow the problem is where imI'm actually implementing the strategy pattern :
It's my first time ever doing this pattern and imI'm not sure if it can be made any better but i know that if imI'm writing something similar a couple times there's probably a better way of doing it.. I created list of those Combinations so i can iterate through them this way iI avoid typing
switchCombinations.CheckCombination(user, _reserve);
all the time. however i cant
However, I can't seem to find a way to reduce the overall size of that and also as i. As I said earlier, it's my first time implementing this pattern and imI'm not sure if it's even effective or if that's the right way to go. Any suggestions are highly appreciated.