public UpdateLoop(ICellBehavior <T> cellBehavior, Board <T> board, bool isAlongRow, bool isIncreasing) { _cellBehavior = cellBehavior ?? throw new ArgumentNullException(nameof(cellBehavior)); _board = board ?? throw new ArgumentNullException(nameof(board)); _isAlongRow = isAlongRow; _isIncreasing = isIncreasing; }
public BoardBehavior(Board <T> board, ICellGenerator <T> cellGenerator, ICellBehavior <T> cellBehavior, Action <Dictionary <Cell <T>, Cell <T> > > updated = null) { _updated = updated; _board = board; _cellGenerator = cellGenerator; _cellBehavior = cellBehavior; }