sudokuAlt (version 0.2-0)

plot.sudoku: Plot a Sudoku Game

Description

Plot a Sudoku Game

Usage

# S3 method for sudoku
plot(x, ..., cex = 1.5 - (n - 3)/2,
  colSolution = "grey", colGame = "fire brick")

Arguments

x

The sudoku game

...

additional arguments

cex

Character expansion factor

colSolution

colour to be used for the solution (if present)

colGame

colour to be used for the original game

Value

The sudoku game x, invisibly.

Details

Present a graphical display of a sudoku game and its solution if the game is solved

Examples

Run this code
# NOT RUN {
set.seed(20191)
makeGame(4, gaps = 0) %>% plot(cex=1) -> sg
# }

Run the code above in your browser using DataLab