Ejemplo n.º 1
0
        public void CardsForPlayers(int playersInGame)
        {
            int numberOfPlayerCards = AllCards.Count / playersInGame;

            for (int i = 0; i < numberOfPlayerCards; i++)
            {
                for (int j = 0; j < playersInGame; j++)
                {
                    AllPlayer[j].PlayerCards.Add(AllCards.Last());
                    AllCards.Remove(AllCards.Last());
                }
            }
        }