makeGame {sudokuAlt} | R Documentation |
Construct a Random Sudoku Game
makeGame(n = 3, gaps = ceiling(3 * n^4/4), maxit = 25)
n |
Size of the game, n^2 x n^2 |
gaps |
Number of holes to leave for the solution |
maxit |
Number of tries before giving up. |
Construcs a sudoku game for given n, 2 <= n <= 5. n = 5 can be problematical.
a sudoku game
Bill Venables
set.seed(54321)
makeGame() %>% solve %>% plot -> sg
originalGame(sg)