brotskydotcom / susen.go

A simple sudoku game.
GNU General Public License v2.0
0 stars 1 forks source link

reload of a puzzle with errors loses track of the errors #22

Closed brotskydotcom closed 8 years ago

brotskydotcom commented 8 years ago

If you do a full-page reload of a puzzle with errors, the errors are not fetched by the LoadPuzzle call (which only loads the squares, after all). Thus the display of the puzzle, when you select a cell, doesn't show that the puzzle has errors (and thus that no guess is valid for any square).

brotskydotcom commented 8 years ago

This was discovered while testing the fix for issue #20. Unfortunately, its fix requires providing an API for fetching a puzzle's status on initial load, which should be used by InitializePage. But there is no such API at this time. So I won't fix this as part of the fix for #20 (which is actually being fixed in pull #19 which also fixes #16 and #21).