originalGame {sudokuAlt} | R Documentation |
Retrieve the Original from a Solved Game
originalGame(x)
x |
a sudoku object |
Convenience function for accessing an original from a solved game. If the game is unsolved, the object itself is returned.
The original sudoku game corresponding to the solution, or object itself if the game is unsolved
Bill Venables
set.seed(666)
seedGame() %>% solve %>% plot -> sg ## %>% imported from magrittr
originalGame(sg)