Exemple #1
0
 private void btnDeal_Click(object sender, System.EventArgs e)
 {
     if (_waitForDouble)
     {
         var win = _hand.GetResult();
         _waitForDouble = false;
         CreditAmount  += _bet * (int)win;
     }
     if (!_hand.State.FirstDeal)
     {
         CreditAmount -= _bet;
     }
     _hand.Deal();
     if (_hand.State.SecondDeal)
     {
         var win = _hand.GetResult();
         if (win != Core.HandResult.None)
         {
             _waitForDouble = true;
         }
     }
     DrawHand();
 }