Skip to content

Instantly share code, notes, and snippets.

@rharriso
Created April 29, 2017 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rharriso/e056eba986bb1d8a65d8a35aa879a54a to your computer and use it in GitHub Desktop.
Save rharriso/e056eba986bb1d8a65d8a35aa879a54a to your computer and use it in GitHub Desktop.
// adjust to deque for pushing back on front
using cellQueue = deque<shared_ptr<SudokuCell>>;
class SudokuBoard {
cellQueue cells;
public
/*
* .....
*/
// fill the board with valid solution
void fillCells(){/* ... */}
// recursive step for filling the board
bool doFillCells(cellQueue &remainingCells) {/* ... */}
/*
* .....
*/
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment