Example #1
0
 public void AskForACard(List<Player> players, int myIndex, Deck stock, Card.Values value)
 {
     foreach (var player in players)
     {
         player.DoYouHaveAny(value);
     }
 }
Example #2
0
 public Deck PullOutValues(Card.Values value)
 {
     Deck deckToReturn = new Deck(0);
     for (int i = _cards.Count - 1; i >= 0; i--)
     {
         if (_cards[i].Value == value)
         {
             deckToReturn.Cards.Add(Deal(i));
         }
     }
     return deckToReturn;
 }
Example #3
0
 public void AskForACard(List<Player> players, int myIndex, Deck stock)
 {
     AskForACard(players, myIndex, stock, (Card.Values)_random.Next(1, 13));
 }