makeGame {sudokuAlt} | R Documentation |
Make a New Sudoku Game
Description
Construct a Random Sudoku Game
Usage
makeGame(n = 3, gaps = ceiling(3 * n^4/4), maxit = 25)
Arguments
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. |
Details
Construcs a sudoku game for given n, 2 <= n <= 5. n = 5 can be problematical.
Value
a sudoku game
Author(s)
Bill Venables
Examples
set.seed(54321)
makeGame() %>% solve %>% plot -> sg
originalGame(sg)
[Package sudokuAlt version 0.2-1 Index]