Solve a Sudoku Puzzle

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
set.seed(1234)
(g <- makeGame(3))
(sg <- solve(g))
plot(sg)