public void DealCards() { for (int i = 0; i < 2; i++) { foreach (var player in Players) { player.AddCard(MainDeck.PopCard()); } } AddShowedCards(); }
public void AddShowedCards() { MainDeck.PopCard(); if (OpenDeck.Length < 3) { for (int i = 0; i < 3; i++) { OpenDeck.AddCard(MainDeck.PopCard()); } } else { OpenDeck.AddCard(MainDeck.PopCard()); } }