Пример #1
0
 private void InitializeDependencies()
 {
     _cellGrowthCalculator      = new CellGrowthCalculator();
     _surroundingCellCalculator = new SurroundingCellCalculator(GameSettings.NumberOfColumnsAndRows);
     _cellRegrowthCalculator    = new CellRegrowthCalculator(_surroundingCellCalculator);
     _generationAdvancer        = new GenerationAdvancer(_cellRegrowthCalculator);
 }
Пример #2
0
 public GenerationAdvancer(ICellRegrowthCalculator cellRegrowthCalculator)
 {
     _cellRegrowthCalculator = cellRegrowthCalculator;
 }