Learn R Programming

sudokuAlt (version 0.2-1)

fetchAUGame: Retrieve a Sudoku from the AU Site

Description

Retrieve a Sudoku Game

Usage

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?

Value

The published sudoku game as a sudoku object.

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.

Examples

Run this code
# NOT RUN {
fetchAUGame() %>% solve %>% plot -> gau           ## The 'tough' game for today 
fetchAUGame(3, "easy") %>% solve %>% plot -> eau  ## 'easy' game from 3 days ago
# }

Run the code above in your browser using DataLab