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

void Solver::set_next_at ( unsigned int  level  )  [virtual]

Set the element to the next sibling.

Implements BackTrack::Solution.

Definition at line 58 of file solver.cpp.

References Sudoku::Puzzle::next_number(), and Sudoku::Puzzle::set().

{
  assert(level < free_count);
  Pos p = free_list[level];
  unsigned int n = puzzle.next_number(p);
  if (n != 0)
    puzzle.set(p, n);
}


Generated by  Doxygen 1.6.0   Back to index