Skip to content

v0.0.4

Latest

Choose a tag to compare

@dachev dachev released this 21 Nov 13:51

This patch release validates Sudoku inputs before solving and rejects contradictory givens without expensive backtracking.

  • Reject boards with the wrong length or cells other than null and integers from 0 through 8 (#14).
  • Reject duplicate givens in any row, column, or 3×3 box before starting the search (#16).
  • Include the corrected shuffle algorithm from #11.
  • List distribution directories explicitly so npm includes the browser build, TypeScript declarations, and source maps.
  • Refresh distributed source maps and add regression tests for malformed boards and duplicate givens, including zero.

Valid puzzles keep the same API and behavior. Thanks to @YiheHuang for both fixes.