Sudoku Puzzle Generator and Solver

Generates, plays, and solves Sudoku puzzles. The GUI playSudoku() needs package "tkrplot" if you are not on Windows.


## To Do: ##

Determine whether a puzzle has a unique solution in solveSudoku, and be able
to require uniqueness in generateSudoku.

playSudoku should allow the user to write "notes" on the cells.

Scores and ratings.

Make solveSudoku smarter, require less guessing.

Fix "Broken X11 window" warnings after playSudoku(display="tk") on Linux.
Fix Error in structure(...) after playSudoku(display="tk") on Windows.

Generalize to NxN, where N=9, 16, etc., and pass "map" around.

Replace print statement in solveSudoku with printSudoku().

Document color scheme, make it selectable (eg for colorblind people).

Make a "sudoku" class.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("sudoku")

2.8 by David Brahm, 4 years ago


Browse source code at https://github.com/cran/sudoku


Authors: David Brahm <brahm@alum.mit.edu> and Greg Snow <Greg.Snow@intermountainmail.org> , with contributions from Curt Seeliger <Seeliger.Curt@epamail.epa.gov> and Henrik Bengtsson <hb@maths.lth.se>.


Documentation:   PDF Manual  


GPL license


Suggests tkrplot


Suggested by sudokuAlt.


See at CRAN