private void InitializeDependencies() { _cellGrowthCalculator = new CellGrowthCalculator(); _surroundingCellCalculator = new SurroundingCellCalculator(GameSettings.NumberOfColumnsAndRows); _cellRegrowthCalculator = new CellRegrowthCalculator(_surroundingCellCalculator); _generationAdvancer = new GenerationAdvancer(_cellRegrowthCalculator); }
public GenerationAdvancer(ICellRegrowthCalculator cellRegrowthCalculator) { _cellRegrowthCalculator = cellRegrowthCalculator; }