Description Usage Arguments Details Value Author(s) Examples
Solve a Sudoku Game
1 | solveGame(game)
|
game |
The game to be solved |
Given a sudoku game to be solved, find the solution. IMPORTANT: games are represented as n^2 x n^2 character matrices, using 1-9 for n=2 or 3, and LETTERS[1:(n^2)] for n = 4 or 5.
A solved sudoku game object if one found, or NULL if no solution exists. The original game is attached as an attribute if the game is solved.
Bill Venables
1 2 3 4 5 6 7 8 |
+ - - - + - - - + - - - +
| 7 | | |
| | | |
| 9 5 | 3 | |
+ - - - + - - - + - - - +
| 6 | 7 8 | |
| | 9 | |
| | 4 5 | |
+ - - - + - - - + - - - +
| 5 | 8 3 6 | 4 |
| | 5 | |
| 6 8 | 2 | 5 3 |
+ - - - + - - - + - - - +
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.