solve_sudoku: Solve a sudoku

View source: R/solve_sudoku.R

solve_sudokuR Documentation

Solve a sudoku

Description

This function solves any 9 by 9 sudoku board.

Usage

solve_sudoku(board)

Arguments

board

The 9 by 9 sudoku grid in form of a numeric matrix.

Value

Invisibly returns a logical vector of length 1. FALSE if the sudoku board is insolvable.

See Also

sample_boards(), easy_solve()

Examples

b3 <- sample_boards()[[1]]
print_board(b3)
solve_sudoku(b3)

KennedyMwavu/SudokuR documentation built on Jan. 2, 2023, 9:07 p.m.