fludoku 3.0.0
fludoku: ^3.0.0 copied to clipboard
A package for generating and solving Sudoku puzzles.
3.0.0 #
generateBoardfunction renamed togenerateSudokuPuzzleto better reflect what it generates. A Sudoku puzzle is a board that is known to have only 1 solution. In addition, the use of termsboardandpuzzlein the documentation is more accurate than in the previous version.- A read-only property,
readOnlyPositions(pum non-intended :)) has been added to theBoardclass. That property is initialized at construction time to contain the (row, col) positions of the non-zero initial values in the board and should make it easier for clients of the library to keep track of which positions are part of the original puzzle and thus not editable by a Sudoku player.
2.0.0 #
- Added a timeout parameter to the
generateBoardfunction. All the parameters of the function are now named and optional. - Removed the artificial limit on the number of empty positions of generated puzzles with dimensions 16 or 25.
Motivated by https://github.com/raulcostajunior/fludoku/issues/1 (thanks @ahmedatef286 for reporting!)
1.0.0 #
-
Initial version with full capabilities (generator lib completed)
Know issue: to avoid long generation times (several minutes) the number of maximum empty positions on generated puzzles is artificially limited to 81. In practice, this affects only boards with dimensions 16 or 25.
0.6.0 #
- Initial version (without Board generation capability)