Wiki
Clone wikisudoku generator / function-generation
Description
generation([int $level = 0] [, int $length = 4])
generation() is the main function of the sudoku class, it generates the sudoku.
generation() returns an array holding the sudoku line by line
Parameters
level
- The difficulty of the sudoku, it uses this number to know how many numbers to remove from end result.
length
- The base of the sudoku, usually sudokus are base 9 (1-9) but you can have others such as base 4 (1-4) and base 16 (1-16)
Return Values
Returns an array holding the sudoku or FALSE on failure
Updated