Beispiel #1
0
        public void Can_Shuffle_Cards()
        {
            var sut = new EuchreDeck();

            for (var i = 0; i < 100; i++)
            {
                sut.Shuffle();
            }

            All_Cards_Are_Unique();

            Assert.AreEqual(24, sut.Cards.Count);
        }
Beispiel #2
0
        public void DealHand()
        {
            var deck = new EuchreDeck();

            for (int i = 0; i < 4; i++)
            {
                deck.Shuffle();
            }

            //Always start by dealing three to the first player
            var numToDeal = (int)EuchreDealNumbers.Three;

            for (var i = 0; i < 8; i++)
            {
                PlayerOrder[i % 4].Hand.AddRange(deck.DealCards(numToDeal));
                numToDeal = ToggleNumToDeal(numToDeal);
            }
        }