Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var dieScoreCalculator = new DefaultDieScoreCalculator();
            var dieRoller          = new RandomDieRoller();
            var userInterface      = new ConsoleUserInterface(ScoringCategoryDisplayStringDict);

            var playerFactory = new PlayerFactory();

            var playerList = playerFactory.CreateNPlayers(2, dieScoreCalculator, dieRoller, userInterface);

            var gameProcessor = new GameProcessor(userInterface, playerList);

            gameProcessor.InitializeNewGame();
            gameProcessor.PlayGame();
        }
 public void Setup()
 {
     _defaultDieScoreCalculator = new DefaultDieScoreCalculator();
 }