Skip to content

MHenderson/rudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rudoku

An R package wrapping the Python Sudoku package.

Installation

You can install rudoku from github with:

# install.packages("devtools")
devtools::install_github("MHenderson/rudoku")

Example

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")

About

Modelling Sudoku puzzles in R.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages