protected virtual void StartGame()
 {
     Deck = new DeckOfCards();
     Deck.Shuffle();
     lblDeck.Text = Deck.Count.ToString();
     btnDeal.Enabled = true;
     btnStart.Enabled = false;
 }
Exemple #2
0
 private void StartGame()
 {
     _deck = new DeckOfCards();
     _deck.Shuffle();
     lblDeck.Text        = _deck.Count.ToString();
     lblCard.Visible     = false;
     lblGuesses.Text     = "0";
     lblCardName.Visible = true;
     lblHints.Text       = "";
     cbPickDeck.Items.Clear();
 }
 private void LoadGame()
 {
     _deck      = new DeckOfCards();
     _upCards   = new List <Card>();
     _blackjack = new BlackJack(_upCards);
     _deck.Shuffle();
     lblDeck.Text = _deck.Count.ToString();
     lbUpCards.Items.Clear();
     lblSum.Text      = "0";
     lblHoleCard.Text = "???";
     btnStart.Enabled = true;
     btnHitMe.Enabled = false;
 }
 private void StartGame()
 {
     _deck = new DeckOfCards();
     _deck.Shuffle();
     lblDeck.Text = _deck.Count.ToString();
     lblCard.Visible = false;
     lblGuesses.Text = "0";
     lblCardName.Visible = true;
     lblHints.Text = "";
     cbPickDeck.Items.Clear();
 }
 private void LoadGame()
 {
     _deck = new DeckOfCards();
     _upCards = new List<Card>();
     _blackjack = new BlackJack(_upCards);
     _deck.Shuffle();
     lblDeck.Text = _deck.Count.ToString();
     lbUpCards.Items.Clear();
     lblSum.Text = "0";
     lblHoleCard.Text = "???";
     btnStart.Enabled = true;
     btnHitMe.Enabled = false;
 }
 private void btnShuffle_Click(object sender, EventArgs e)
 {
     _deck.Shuffle();
     LoadDeck();
 }