# NOT RUN {
puz1 <- playSudoku(0) # Use as an editor to create a puzzle, then quit
sol1 <- playSudoku(puz1) # now play the puzzle
puz2 <- edit(matrix(0,9,9)) # Or use this editor
sol2 <- playSudoku(puz2) # now play the puzzle
playSudoku() # Play a randomly generated game
playSudoku(fetchSudokuUK()) # Play today's game
# }
Run the code above in your browser using DataCamp Workspace