Update Sudoku Solver to check for naked singles.

This commit is contained in:
Drew Galbraith 2023-04-17 16:48:38 -07:00
parent bcc5b5097e
commit 3dc9f04650
5 changed files with 40 additions and 0 deletions

View file

@ -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]; }