Description Usage Arguments Details Value Examples
Put a solved sudoku game into a canonical form
1 2 3 4 5 6 7 | regulariseGame(g, ...)
## S3 method for class 'sudoku'
regulariseGame(g, target = c("block", "col", "row"), ...)
## Default S3 method:
regulariseGame(g, ...)
|
g |
a solved sudoku game |
... |
additional arguments to methods (currently not used) |
target |
character; which section do you want to be in sorted order? |
If a solved sudoku game is to be used as an experimental design it is sometimes useful to re-arrange the symbols so that either the first row, first column or top left block symbols are in sorted order. This function accomplishes this task.
a regularised solved sudoku game
1 2 3 4 5 6 | set.seed(1234)
g <- makeGame() %>%
solve() %>%
regulariseGame(target = "b") %>%
plot()
plot(originalGame(g))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.