Exemple #1
0
 public Solver(SudokerGrid grid, SolutionList solutions)
 {
     sGrid = grid;
     iGrid = grid.Items;
     solutionList = solutions;
     bRow = new BitVector32[9];
     bCol = new BitVector32[9];
     bBox = new BitVector32[9];
 }
Exemple #2
0
 public SudokerGrid()
 {
     Items = new InputCell[9][];
     for (int row = 0; row < 9; row++)
     {
         Items[row] = new InputCell[9];
         for (int col = 0; col < 9; col++)
         {
             Set(row, col, 0);
         }
     }
     SolutionList = new SolutionList();
     explorer = new Explorer(this);
     solver = new Solver(this, SolutionList);
 }