powered by
Construct a Sudoku Game Object
as.sudoku(x, ...)
an n^2 x n^2 matrix object to represent the game
Other additional arguments (currently ignored)
An object of class 'sudoku'
Coerce an object to one that can be used as a sudoku game. IMPORTANT: games are represented as n^2xn^2 character matrices, using 1-9 for n=2 or 3, and LETTERS[1:(n^2)] for n = 4 or 5.
# NOT RUN { M <- as.sudoku(matrix("", 16, 16)) M[1:4, 1:4] <- matrix(LETTERS[1:16], 4, 4, byrow = TRUE) sM <- solve(M) plot(sM) # }
Run the code above in your browser using DataLab