예제 #1
0
파일: Game.cs 프로젝트: AllenRMore/War
        /*
         * Distributes cards among appropriate players.
         */
        private void Deal()
        {
            int totalCards = deck.Cards.Count;

            for (int i = 0; i < totalCards; i++)
            {
                players[i % players.Count].Hand.AddOneCard(deck.DrawOneCard());
            }
        }