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

void Numbers::set ( Pos  pos,
unsigned int  number 
) [virtual]

Set the number into this cell.

Reimplemented in Sudoku::Puzzle.

Definition at line 47 of file puzzle.cpp.

References Sudoku::DIM.

Referenced by Sudoku::Puzzle::reset(), and Sudoku::Puzzle::set().

  assert (pos <= Pos::last());
  assert (0 <= number && number <= DIM);
  content[pos] = number;

Generated by  Doxygen 1.6.0   Back to index