Description Usage Arguments Details Value Author(s) Examples
Retrieve a Sudoku Game
1 | fetchUKGame(day = NULL)
|
day |
positive integer < 30, how many days ago? or NULL for the most recently published game. |
Connects to http://www.sudoku.org.uk/DailySudoku.asp
and retrieves
the sudoku game from day
days ago. Based on a function from a
related sudoku package, sudoku::fetchSudokuUK
with minor changes.
The published sudoku game as a sudoku object.
Bill Venables
1 2 3 4 5 6 7 8 9 10 | ## Not run:
(g0 <- fetchUKGame()) ## The game for today (according to GMT)
(g3 <- fetchUKGame(3)) ## game from 3 days ago (according to GMT)
if(require(sudoku)) { ## the original solver
g0a <- as.sudoku(fetchSudokuUK())
identical(g0, g0a) ## should be TRUE
}
g0 %>% solve %>% plot -> sg0 ## spoil the game
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.