sudokuAlt (version 0.2-0)

originalGame: Retrieve the Original from a Solved Game

Description

Retrieve the Original from a Solved Game

Usage

originalGame(x)

Arguments

x

a sudoku object

Value

The original sudoku game corresponding to the solution, or object itself if the game is unsolved

Details

Convenience function for accessing an original from a solved game. If the game is unsolved, the object itself is returned.

Examples

Run this code
# NOT RUN {
set.seed(666)
seedGame() %>% solve %>% plot -> sg ## %>% imported from magrittr
originalGame(sg)
# }

Run the code above in your browser using DataLab