Ejemplo n.º 1
0
 private void hitButton_Click(object sender, EventArgs e)
 {
     doubleButton.Enabled = false;
     if (player.Hand1Value() < 21)
     {
         deck.PlayerHit(player);
         label3.Text = "Player Hand: " + player.ShowHand1();
         label1.Text = "Player Hand Value: " + player.Hand1Value().ToString();
         if (player.Hand1Value() > 21)
         {
             playerLost();
             MessageBox.Show("Busted");
             newRound();
             return;
         }
     }
     if (player.Hand1Value() == 21)
     {
         standButton_Click(sender, e);
     }
 }