The "0" button on 'candidates' mode does nothing right now, and it should empty all the candidates in the selected cells.
It just needs to walk through the selected cells and do gameArray[row][col].candidates.clear().
It would also be nice to have a button that fills in all the candidates, since a lot of sudoku is about eliminating candidates. It could also be a setting, like 'start game with filled candidates', which would do candidates: new Set(1,2,3,4,5,6,7,8,9) instead of new Set()
The "0" button on 'candidates' mode does nothing right now, and it should empty all the candidates in the selected cells.
It just needs to walk through the selected cells and do
gameArray[row][col].candidates.clear()
.It would also be nice to have a button that fills in all the candidates, since a lot of sudoku is about eliminating candidates. It could also be a setting, like 'start game with filled candidates', which would do
candidates: new Set(1,2,3,4,5,6,7,8,9)
instead ofnew Set()