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

bool Solver::is_valid_at ( int  level  )  const [virtual]

Check if the element is valid (following elements ignored).

Implements BackTrack::Solution.

Definition at line 83 of file solver.cpp.

References Sudoku::Puzzle::error(), and Sudoku::Puzzle::solved().

{
  assert(level < int(free_count));
  if (level < 0)
    return puzzle.solved();
  return !puzzle.error(free_list[level]);
}


Generated by  Doxygen 1.6.0   Back to index