...
Note: Your Sudoku solver should be able to solve a completely blank puzzle (all dashes, not empty)!
Programming Tips
Updating the View
At the end of the reduceBoard
and solve
methods, be sure to add the line
Code Block |
---|
{color:#0000c0}view{color}.setCellViews({color:#0000c0}currentBoard{color}.{color:#0000c0}blks{color});
|
This will update the view with the mutated board. (Note that the {IViewAdapter.setCellViews()}} wants the cells in the format of the blocks, not the rows, because that's how the screen is laid out.)
Mutating a value outside of an anonymous inner class:
...