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