Exemplo n.º 1
0
        private GameBoard CreateBoard()
        {
            var gameBoard = new GameBoard(banker);
            dice = new TraditionalDice();
            jailRoster = new TraditionalJailRoster(banker);
            var traditionalCardDeckFactory = new TraditionalCardDeckFactory(banker, jailRoster, gameBoard, dice);
            var locationFactory = new TraditionalLocationFactory(banker, dice, jailRoster, gameBoard, traditionalCardDeckFactory);

            gameBoard.SetLocations(locationFactory.GetLocations(), locationFactory.GetRailroads(), locationFactory.GetUtilities());

            return gameBoard;
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     dice = new TraditionalDice();
 }