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); }
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(); } }