diff options
author | Stijn Buys <ingar@osirion.org> | 2012-07-29 17:01:19 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-07-29 17:01:19 +0000 |
commit | 515dc74faa844327bb57595569ffb8f681096ec0 (patch) | |
tree | 0b942e9747bbada44a1cbe329484b81851fa0a67 /src/sudoku.h | |
parent | 6d6801d4779266b0eb062120525ef76510e76e3c (diff) |
Debug-report number of solved cells in each step.
Diffstat (limited to 'src/sudoku.h')
-rw-r--r-- | src/sudoku.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/sudoku.h b/src/sudoku.h index 3b9af8e..dd0ca08 100644 --- a/src/sudoku.h +++ b/src/sudoku.h @@ -13,12 +13,12 @@ public: void assign(const Sudoku & other); - // inspectors + int compare_and_assign(const Sudoku & other); + inline int value(int row, int column) const { return sudoku_cell[row][column].value(); } - // mutators void validate(); void set_value(int row, int column, int cell_value); @@ -27,9 +27,10 @@ public: int solve_constraints(int pos_row, int pos_column); - void solve_constraints(); + int solve_constraints(); + + int solve_coverage(); - void solve_coverage(); private: Cell sudoku_cell[9][9]; }; |