예제 #1
0
        private void CreateAndPlayGame(IEnumerable <Int32> playerIds)
        {
            var banker      = new TraditionalBanker(playerIds);
            var turnFactory = new TraditionalTurnFactory(banker);

            game = new Game(playerIds, turnFactory);
            game.Play();
        }
예제 #2
0
        public void SetUp()
        {
            playerIds = new[] { 0, 1, 2 };
            var banker = new TraditionalBanker(playerIds);

            turnFactory = new TraditionalTurnFactory(banker);
            game        = new Game(playerIds, turnFactory);
        }