emptyGame: Construct an empty game

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Construct a Vacant Game Structure

Usage

1
emptyGame(n = 3)

Arguments

n

an integer value between 2 and 5 inclusive.

Details

Returns a vacant game structure to allow special patterns to be constructed, as shown in the example.

Value

An empty sudoku game structure

Author(s)

Bill Venables

Examples

1
2
3
4
g <- emptyGame(4)
diag(g) <- LETTERS[1:16]
plot(g)
g %>% solve %>% plot -> sg ## %>% imported from magrittr 

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