[text] Code I need to use

Viewer

copyrawdownloadembedprintName: Code I need to use
  1. private void StayButton_Click(object sender, EventArgs e)
  2.         {
  3.             if (isPlayerBust() == true)
  4.             {
  5.                 EvaluateWinner();
  6.             }
  7.             else 
  8.             {
  9.                 while (DealerHand.TotalCards() < 5 && (isDealerBust() == false) && (isDealerWinMet() == false))
  10.                 {
  11.                     Card newCard = currentDeck.DealCard();
  12.                     DealerHand.AddCard(newCard);
  13.  
  14.                     GraphicsDealer();
  15.                 }
  16.  
  17.                 EvaluateWinner();
  18.             }
  19.         }
  20.  
  21.         public Boolean isDealerWinMet()
  22.         {
  23.             if (DealerHand.HandTotal() >= PlayerHand.HandTotal() && DealerHand.HandTotal() >= 17)
  24.             {
  25.                 return true;
  26.             }
  27.             else 
  28.             {
  29.                 return false;
  30.             }
  31.         }
  32.  
  33.         public Boolean isDealerBust()
  34.         {
  35.             if (DealerHand.HandTotal() > 21)
  36.             {
  37.                 return true;
  38.             }
  39.             else
  40.             {
  41.                 return false;
  42.             }
  43.         }
  44.  
  45.         public Boolean isPlayerBust()
  46.         {
  47.             if (PlayerHand.HandTotal() > 21)
  48.             {
  49.                 return true;
  50.             }
  51.             else
  52.             {
  53.                 return false;
  54.             }
  55.         }

Editor

You can edit this paste and save as new: