Esempio n. 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);
         }
     }
 }
Esempio n. 2
0
 public CribPlayer(bool isComputer, bool isDealer)
 {
     _hand       = new CribHand(false);
     _isComputer = isComputer;
     IsDealer    = isDealer;
 }
Esempio n. 3
0
 public void ClearLastHand()
 {
     _hand = new CribHand(false);
 }