R/writeSudoku.R

Defines functions writeSudoku

Documented in writeSudoku

writeSudoku <- function(z, fn) {
  z[z==0] <- "-"
  cat(t(z), file=fn, sep=c(rep.int("", ncol(z)-1), "\n"))        # From "write"
}

Try the sudoku package in your browser

Any scripts or data that you put into this service are public.

sudoku documentation built on April 19, 2022, 5:09 p.m.