コード例 #1
0
        public PlayerHand Split()
        {
            IsSplit = true;

            var splitHand = new PlayerHand(Player);

            splitHand.Bet(Wager);
            splitHand.Cards.Add(SecondCard);
            Cards.Remove(SecondCard);
            Player.SplitHands.Add(splitHand);

            return(splitHand);
        }
コード例 #2
0
        private void DoubleDown(PlayerHand hand)
        {
            var doubleBet = Math.Min(hand.Wager, hand.Player.BettableChips);

            Console.WriteLine($"Doubling down for ${doubleBet}");
            hand.Bet(doubleBet);
            Thread.Sleep(2000);

            Dealer.Deal(Shoe, hand);
            Draw();
            if (hand.IsBusted)
            {
                Bust(hand);
            }
            else
            {
                hand.Double();
                Draw();
            }
        }