Exemplo n.º 1
0
        public void TestDeck52Cards_Deal_1()
        {
            Deck52Cards deck = new Deck52Cards();

            deck.Deal();
            Assert.Equal(51, deck.GetCards().Count);
        }
Exemplo n.º 2
0
        private void DealHandCard(bool isFirstCard)
        {
            var occupiedSeats = Table.GetOccupiedSeatsOrderByToBeDealt();

            foreach (var seat in occupiedSeats)
            {
                if (isFirstCard)
                {
                    seat.Hand           = new HoleCards();
                    seat.Hand.FirstCard = Deck.Deal();
                }
                else
                {
                    seat.Hand.SecondCard = Deck.Deal();
                }
            }
        }