private Card TakeTopOfMainDeck() { Card c = MainDeck[0]; MainDeck.RemoveAt(0); return(c); }
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!"); } }
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); } } }