/// <summary> /// Resets all card picture boxes on form to null /// </summary> public static void NewGame() { foreach (PictureBox p in Blackjack.CardDisplay) { p.Image = null; } foreach (PictureBox p in Blackjack.DealerCardDisplay) { p.Image = null; } if (Shoe.ShoeDecks.Count <= 15) { //shuffle sound plays when shoe is reshuffled System.Media.SoundPlayer soundEffects = new System.Media.SoundPlayer(); soundEffects.SoundLocation = "cardFan2.wav"; soundEffects.Play(); Shoe deck = new Shoe(); } }
/// <summary> /// Constructor which creates deck /// </summary> public BlackJackGame() { Shoe deck = new Shoe(); }