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