Learn R Programming

sudokuAlt (version 0.2-1)

designGame: Sudoku Design

Description

Take a sudoku game and represent the information as a data frame giving the row, column, square and symbol for each entry. This is a useful form if the (complete) game is to be used as an experimental design

Usage

designGame(g, ...)

# S3 method for default designGame(g, ...)

# S3 method for sudoku designGame(g, ...)

Arguments

g

a sudoku game, presumably solved

...

currently ignored

Value

a data frame with four colums, Row, Col, Square and Symbol

Examples

Run this code
# NOT RUN {
set.seed(2019)
d <- seedGame(4) %>% solve() %>%
     regulariseGame(target = "b") %>%
     designGame()
rbind(head(d), tail(d))
# }

Run the code above in your browser using DataLab