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

bool Puzzle::solved (  )  const

All cells set and no errors?

Definition at line 177 of file puzzle.cpp.

References correct(), and Sudoku::SDIM.

Referenced by Sudoku::Solver::is_valid_at(), and SudokuPlugin::Menu::ProcessKey().

  unsigned int i;

  for (i = 0; i < SDIM; ++i)
    if (get(i) == 0 || !correct(i))
      return false;

  return true;

Generated by  Doxygen 1.6.0   Back to index