powered by
Construct a Random Sudoku Game
makeGame(n = 3, gaps = ceiling(3 * n^4/4), maxit = 25)
Size of the game, n^2 x n^2
Number of holes to leave for the solution
Number of tries before giving up.
a sudoku game
Construcs a sudoku game for given n, 2 <= n <= 5. n = 5 can be problematical.
# NOT RUN { set.seed(54321) makeGame() %>% solve %>% plot -> sg originalGame(sg) # }
Run the code above in your browser using DataLab