Update Sudoku Solver to check for naked singles.
This commit is contained in:
parent
bcc5b5097e
commit
3dc9f04650
5 changed files with 40 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ class Cell {
|
|||
|
||||
void Restrict(uint8_t value);
|
||||
|
||||
uint8_t NumPossibilities();
|
||||
|
||||
bool IsSolved() const { return state_ == Solved; }
|
||||
uint8_t value() const { return value_; }
|
||||
bool IsPossible(uint8_t v) const { return possibilities_[v - 1]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue