Exemplo n.º 1
0
        public void Begin()
        {
            BlackQueenDeck Deck    = new BlackQueenDeck();
            List <Player>  Players = new List <Player>(new Player[4]);

            Deal(Deck, ref Players);
            BeginRound(Players);
        }
Exemplo n.º 2
0
        private static void Deal(BlackQueenDeck DeckOfCards, ref List <Player> Players)
        {
            DeckOfCards.Shuffle();
            var DealtCards = DeckOfCards.DealCards(Players.Count());

            for (int i = 0; i < Players.Count(); i++)
            {
                Player player = new Player()
                {
                    CardsInHand = DealtCards[i]
                };
                Players[i] = player;
            }
        }