public Game(IEventAggregator eventAggregator, ISupplyBuilder supplyBuilder, IEnumerable <Player> players, IEnumerable <EndGameCondition> endGameConditions, IContainer container) { TurnNumber = 1; _eventAggregator = eventAggregator; _container = container; Players = players; Supply = supplyBuilder.BuildSupply(); _playerIterator = Players.GetEnumerator(); endGameConditions.ForEach(c => _endGameConditions.Add(c)); }
public static Supply FromISupplyBuilder(ISupplyBuilder builder) { return(builder.BuildSupply()); }