benjstorlie / sudoku-shuffle

Play sudoku
https://mighty-ridge-19238-3e456d2c37f3.herokuapp.com/
MIT License
0 stars 0 forks source link

Clear candidates + Fill Candidates functions #34

Closed benjstorlie closed 1 year ago

benjstorlie commented 1 year ago

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()