/// <summary> /// Empty the DealerShoe, swap the Discard with Dealer shoes, and reshuffle. /// </summary> private void Reshuffle() { while (DealerShoe.CardsLeft > 0) { DiscardShoe.AddCard(DealerShoe.DrawCard()); } Deck tmp = DiscardShoe; DiscardShoe = DealerShoe; DealerShoe = tmp; DealerShoe.Shuffle(Rules.SubsequentShuffle); OnShoeShuffle(); ReshuffleLimit = (int)(Rules.ReshuffleMinimum * DealerShoe.CardsLeft) + random.Next((int)((Rules.ReshuffleMaximum - Rules.ReshuffleMinimum) * DealerShoe.CardsLeft)); }
/// <summary> /// Used to return cards to the discard pile, after a hand is over. /// </summary> /// <param name="cards">Grouping of cards to add to the pile</param> public void DiscardCards(IEnumerable <Card> cards) { DiscardShoe.ReturnCards(cards); }