Example #1
0
 protected void CountTotalByCombo(int selected, int total, int start, Card[] cards, List <Card> tempHand, List <CardCombination> combos)
 {
     selected--;
     for (int i = start; i < tempHand.Count; i++)
     {
         cards[selected] = tempHand[i];
         if (selected == 0)
         {
             var comboToScore = new CribHand(cards.ToList());
             var score        = comboToScore.GetScore(false, null);
             combos.Add(new CardCombination(comboToScore.Cards, score));
         }
         else
         {
             start++;
             CountTotalByCombo(selected, total, start, cards, tempHand, combos);
         }
     }
 }
Example #2
0
 public void CountHand(Card turnCard)
 {
     _hand.GetScore(true, turnCard);
 }