originalGame {sudokuAlt}R Documentation

Retrieve the Original from a Solved Game

Description

Retrieve the Original from a Solved Game

Usage

originalGame(x)

Arguments

x

a sudoku object

Details

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

Value

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

Author(s)

Bill Venables

Examples

set.seed(666)
seedGame() %>% solve %>% plot -> sg ## %>% imported from magrittr
originalGame(sg)

[Package sudokuAlt version 0.2-1 Index]