fetchUKGame: Retrieve a Sudoku from the UK Site

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Retrieve a Sudoku Game

Usage

1

Arguments

day

positive integer < 30, how many days ago? or NULL for the most recently published game.

Details

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.

Value

The published sudoku game as a sudoku object.

Author(s)

Bill Venables

Examples

 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)

sudokuAlt documentation built on Dec. 16, 2019, 1:23 a.m.