sudokuAlt (version 0.2-0)

makeGame: 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.

Value

a sudoku game

Details

Construcs a sudoku game for given n, 2 <= n <= 5. n = 5 can be problematical.

Examples

Run this code
# NOT RUN {
set.seed(54321)
makeGame() %>% solve %>% plot -> sg
originalGame(sg)

# }

Run the code above in your browser using DataLab