Exemple #1
0
 public GameState()
 {
     channel = null;
     sd = null;
     sid = 0;
     players = new Dictionary<string, bool>();
     stage = GameStage.Stopped;
     deck = new CardDeck();
     deck.Shuffle(); //Just in case
     dealerCards = new Hand();
 }
        int s_id; //save id rowguid for current game being saved or loaded

        #endregion Fields

        #region Constructors

        private Bj_interaction()
        {
            player_column = 0;
            move_visibility = false;
            done_button_visibility = false;
            deal_button_visibility = false;
            bets_placed = 0;
            players = new Players();
            deck = new CardDeck();
            dealer = new Dealer();
        }
Exemple #3
0
 public Game(CardDeck cardDeck)
 {
     _cardDeck = cardDeck;
     AddDealer();
 }