Esempio n. 1
0
        private Card TakeTopOfMainDeck()
        {
            Card c = MainDeck[0];

            MainDeck.RemoveAt(0);
            return(c);
        }
Esempio n. 2
0
 public void DealOneCard()
 {
     if (CounterForShuffle != 0)
     {
         Console.WriteLine($"You dealt: {MainDeck[0]}");
         MainDeck.RemoveAt(0);
     }
     else
     {
         Console.WriteLine($"Firstly, you have to shuffle the deck!");
     }
 }
Esempio n. 3
0
 private void DealCards()
 {
     foreach (Player p in Players)
     {
         foreach (string key in new List <string>(p.CardDict.Keys))
         {
             p.CardDict[key] = MainDeck.Take(1).First();
             if (key.Contains("V"))
             {
                 p.CardDict[key].Visibility = CardVisibilityState.Public;
             }
             MainDeck.RemoveAt(0);
         }
     }
 }