private void ShuffleAgain() { while (SubMediumDeck.Count != 0) { Picker = RdmPicker.Next(0, SubMediumDeck.Count); if (Picker < SubMediumDeck.Count) { MainDeck.Add(SubMediumDeck[Picker]); SubMediumDeck.RemoveAt(Picker); } } }
public void SetupMainDeck() { MainDeck.Clear(); //create decks to be used and adds them to main Deck for (int counter = NumberOfDecksInPlay; counter > 0; counter = counter - 1) { IDeck _deck = new Deck(); _deck.Shuffle(7); //shuffle enough times to ensure random order foreach (ICard card in _deck.Cards) { MainDeck.Add(card); } } }