fetchAUGame: Retrieve a Sudoku from the AU Site

Description Usage Arguments Details Value Author(s) Examples

View source: R/sudokuAlt.R

Description

Retrieve a Sudoku Game

Usage

1
fetchAUGame(day = 0, difficulty = c("tough", "hard", "medium", "easy"))

Arguments

day

non-negative integer, how many days ago? zero for today's game.

difficulty

character string, how hard would you like it?

Details

Connects to http://www.sudoku.com.au 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
## Not run: 
fetchAUGame() %>% solve %>% plot -> gau           ## The 'tough' game for today 
fetchAUGame(3, "easy") %>% solve %>% plot -> eau  ## 'easy' game from 3 days ago

## End(Not run)

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