library(sudokuplyr)
# Make sure that analyze_sudoku gets things right
analyzed_sudoku <- analyze_sudoku(sudoku)
if(analyzed_sudoku$clues != 32 | !analyzed_sudoku$legal_solution | !analyzed_sudoku$unique) {
stop('analyze sudoku did not properly analyze sudoku')
} else {
print('analyze sudoku is working as expected')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.