public Matrix() { // disable once ConvertClosureToMethodGroup SquareArray.Sudoku.IterateTwo((int r, int c) => { matrix[r, c] = new StateSpace( () => changeObserver(), () => invalidStateObserver()); }); }
public StateSpace(StateSpace origin, Action changeObserver = null, Action invalidState = null) { bits = new BitArray(origin.bits); this.changeObserver = changeObserver; this.invalidState = invalidState; }