solve.sudoku: Solve a Sudoku Puzzle

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Solve a Sudoku Puzzle

Usage

1
2
## S3 method for class 'sudoku'
solve(a, ...)

Arguments

a

A sudoku game object to be solved

...

Extra arguments (curently ignored)

Details

An alternative front end to solveGame as a method for the base generic function solve.

Value

a solved game, or NULL if no solution exists.

Author(s)

Bill Venables

Examples

1
2
3
4
5
6
7
8
set.seed(1234)
makeGame(3, gaps = 59) %>% solve %>% plot -> sg
originalGame(sg)

g <- emptyGame(4)  # construct a patterned game
diag(g) <- LETTERS[1:16]
g %>% solve %>% plot -> sg
sg


sudokuAlt documentation built on May 19, 2017, 11:04 p.m.
Search within the sudokuAlt package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.