Logo Search packages:      
Sourcecode: vdr-plugin-sudoku version File versions  Download package

Solver::Solver ( Puzzle puzzle,
bool  random_init = false,
unsigned int  max_iter = 0 
)

Constructor

Definition at line 22 of file solver.cpp.

References Sudoku::Puzzle::given().

                                                                      :
  Algorithm(*this, max_iter), puzzle(puzzle), random_init(random_init)
{
  free_count = 0;
  for (Pos p = Pos::first(); p <= Pos::last(); p = p.next())
    if (!puzzle.given(p))
      ++free_count;
}


Generated by  Doxygen 1.6.0   Back to index