예제 #1
0
        public BlackJackGame( )
        {
            gameCards = new Deck( );
            gameCards.FillDeck( );
            gameCardsVisible = gameCards;
            gameCardsUsed    = new Deck( );

            players = new List <Player>( );
            splits  = new List <Player>( );
            dealer  = new Player( );
        }
예제 #2
0
 public void ResetDeck( )
 {
     gameCards.FillDeck( );
     for (int i = 0; i < NumberOfPlayers; i++)
     {
         players[i].ClearPlayer( );
         splits[i].ClearPlayer( );
     }
     dealer.ClearPlayer( );
     gameCardsUsed.cards.Clear( );
 }