An R package wrapping the Python Sudoku package.
You can install rudoku from github with:
# install.packages("devtools")
devtools::install_github("MHenderson/rudoku")This is a basic example which shows you how to solve a common problem:
library(rudoku)
library(tidyverse)
solve(3) %>%
reshape2::melt() %>%
ggplot(aes(x = Var1, y = Var2, fill = as.factor(value))) +
geom_tile(alpha = 0.8) +
scale_fill_brewer(palette = "Set3", guide = FALSE) +
theme_void() +
theme(legend.position = "none")