Retrieve a Sudoku from the UK Site

Share:

Description

Retrieve a Sudoku Game

Usage

1
fetchUKGame(day = NULL)

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
## 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
}

## End(Not run)