powered by
Creates a 9x9 Sudoku grid suitable for use by playSudoku.
playSudoku
generateSudoku(Nblank=50, print.it=FALSE)
Number of cells to blank out
Logical. If true, print result to screen.
A matrix, representing a 9x9 Sudoku grid.
The basic algorithm is to start with a 'primordial' Sudoku grid, swap around some rows and columns, then blank out some cells.
https://sudoku.com/
# NOT RUN { generateSudoku(print.it=TRUE) # }
Run the code above in your browser using DataLab