Beispiel #1
0
        /// <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();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Constructor which creates deck
 /// </summary>
 public BlackJackGame()
 {
     Shoe deck = new Shoe();
 }