Ejemplo n.º 1
0
        public void DealCards(IEnumerable <Player> allPlayers)
        {
            var splittedDeck = _mainDeck.SplitCards(allPlayers.Count());

            _mainDeck = null;

            foreach (Player player in allPlayers)
            {
                player.AddCardsToHand(splittedDeck[0]);
                splittedDeck.RemoveAt(0);
            }
        }