public Hand(IList<Card> cards, IStateScorer handScorer) { Cards = cards; _handScorer = handScorer; if ((handScorer != null) && (cards != null)) { Value = _handScorer.Score(Cards); } BaseValue = (int)Math.Floor(Value); BaseHand = new HandFinder().FindBestHand(Cards); }
public CardGrid(int numberOfCardsPerSide, List<Card> cards, IStatePermuter permuter, IStateScorer scorer) : this(numberOfCardsPerSide, cards) { StatePermuter = permuter; StateScorer = scorer; }
public CardGrid(int numberOfCardsPerSide, IStatePermuter permuter, IStateScorer scorer) : this(numberOfCardsPerSide, null, permuter, scorer) { }