public override void Execute(IBlackjackDealer dealer)
 {
     var p = (BettingPlayer)Player;
     p.Bank.DoubleDown();
     dealer.Hit(p);
     p.State.Execute(dealer);
 }
Exemple #2
0
            public override void Execute(IBlackjackDealer dealer)
            {
                if (Player.DoHit())
                    dealer.Hit(Player);
                else
                {
                    Player.State = Player.GetStandingState();
                    Player.RaisePlayerStandingEvent();
                }

                Player.State.Execute(dealer);
            }
            public override void Execute(IBlackjackDealer dealer)
            {
                BettingPlayer player = (BettingPlayer)Player;
                if (player.Hand.CanDoubleDown() && player.DoubleDown())
                {
                    player.State = player.GetDoublingDownState();
                    player.State.Execute(dealer);
                    return;
                }

                if (player.DoHit())
                    dealer.Hit(player);
                else
                {
                    player.State = player.GetStandingState();
                    player.RaisePlayerStandingEvent();
                }

                player.State.Execute(dealer);
            }