makeGame: Make a New Sudoku Game

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Construct a Random Sudoku Game

Usage

1
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

1
2
3
set.seed(54321)
makeGame() %>% solve %>% plot -> sg
originalGame(sg)

sudokuAlt documentation built on Dec. 16, 2019, 1:23 a.m.