M | |
makePuzzle | |
makeSolution | |
S | |
solveSudoku |
This function makes a puzzle (a partially filled grid), given a solution (completely filled grid) and a number of cells to leave filled.
FUNCTION makePuzzle( solution: multiarray.ArrayNumber2D, filled: Number, callback: FUNCTION(n: Number) ): multiarray.ArrayNumber2D
This function makes a random solution to a Sudoku puzzle.
FUNCTION makeSolution(): multiarray.ArrayNumber2D
This solver uses the above implementation to efficiently solve a Sudoku puzzle.
FUNCTION solveSudoku( INOUT grid: multiarray.ArrayNumber2D ): Number