sigh / Interactive-Sudoku-Solver

Fast web-based Sudoku solver. Supports many variants including all grid sizes up to 16x16.
MIT License
33 stars 9 forks source link

"Clear All" button clears grid size from URL #6

Closed dare-to-recurse closed 1 month ago

dare-to-recurse commented 1 month ago

In some update the "Clear All" button has started clearing the grid size from the URL, which breaks the solver until grid size is switched in the drop-down menu.

URL after clicking button: url-clear-all-pressed

16x16 grid after clicking button: grid-clear-all-pressed

sigh commented 1 month ago

Pushed a quick fix in https://github.com/sigh/Interactive-Sudoku-Solver/commit/b1f35d94942b0e04de5dfd44f8516d31f7c6c160

I'll look later at making the shape-handling a bit more robust.

Edit: Updated the shape handling to have a single source of truth so this sort of inconsistency is less likely to occur.