Exemplo n.º 1
0
        public void Deal(uint cardsToDeal)
        {
            if (Players.Count == 0)
            {
                throw new CardGameException("No players added to game");
            }
            CurrentGameState = GameState.GameStarted;

            foreach (var player in Players)
            {
                _deck.Deal(player, cardsToDeal);
            }
        }