A 9X9 sudoku generator
NOTE: This is a generator, not a complete sudoku game!
How to use: Import the extension into your project. Call the sudoku_generate() function. It returns a 9X9 array with a solved sudoku puzzle. Optionally, call the sudoku_set_givens() function, passing the generated puzzle and a number between 1 and 81. It will return an additional 9X9 array, containing randomly selected cells from the generated puzzle, with the rest of the cells set to zero.
var p = sudoku_generate();
var u = sudoku_set_givens(p, 30);
You shouldn't have to use the rest of the scripts. They are just functions called from the sudoku_generate script.