solver: Function which solves a sudoku puzzle

Description Usage Arguments Value

Description

Takes a 9x9 matrix that represents a sudoku puzzle and returns the puzzle solved.

Usage

1
solver(puz)

Arguments

puz

9x9 matrix representation of a sudoku puzzle. Cells of the sudoku puzzle which are not filled in should be represented by NA values.

Value

Takes as input a 9x9 representation of a sudoku puzzle and finds and returns its solution. This function utilizes the functions initArray as well as logic1, logic2, upArray recursively in order to find the solution for the puzzle


JamesCuster/sudokusolvr documentation built on June 4, 2019, 7:46 a.m.