示例#1
0
        public Game()
        {
            m_dealer = new Dealer(new rules.RulesFactory());
            m_player = new Player();
            m_observers = new List<IBlackJackObserver>();

            // Observer...
            //this.AddSubscriber(m_dealer);
            //this.AddSubscriber(m_player);

            // Player need ref to game for notifying - observer.....
            m_dealer.setGame(this);
            m_player.setGame(this);
        }