Example #1
0
 void resetGame()
 {
     dealt21               = false;
     drawButton.Enabled    = false;
     keepButton.Enabled    = false;
     dealButton.Enabled    = true;
     scoreLabel.Text       = "";
     handLabel.Text        = "";
     dealerHandLabel.Text  = "";
     dealerScoreLabel.Text = "";
     playerScore           = 0;
     dealerScore           = 0;
     PlayerHand.Clear();
     DealerHand.Clear();
     for (int i = 0; i < PlayerPics.Count; i++)
     {
         PlayerPics[i].Image = Properties.Resources.empty_space;
         DealerPics[i].Image = Properties.Resources.empty_space;
     }
     deck.ReloadDeck();
     deck.Shuffle(5);
 }