Пример #1
0
 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;
 }
Пример #2
0
 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;
 }