Exemplo n.º 1
0
 public void ValidateDeck(Random rand, List <int> restrictedCards)
 {
     while (restrictedCards.Contains(DeckCards[0].Value) || restrictedCards.Contains(DeckCards[1].Value) || restrictedCards.Contains(DeckCards[DeckCards.Count - 1].Value) || restrictedCards.Contains(DeckCards[DeckCards.Count - 2].Value))
     {
         RandomExtensions.Shuffle(rand, DeckCards);
     }
 }
Exemplo n.º 2
0
 public void RollDie(Random rand)
 {
     RandomExtensions.Shuffle(rand, DieSides);
 }
Exemplo n.º 3
0
 public void Shuffle(Random rand)
 {
     RandomExtensions.Shuffle(rand, deckCards);
 }