upPuz: Function to update puzzle and puzzle array when solution is...

Description Usage Arguments Value

Description

Takes as input the sudokuPuzzle object and a solution produced from the logic1 function

Usage

1
upPuz(puzList, solution)

Arguments

puzList

a sudokuPuzzle object which contains a 9x9 matrix representation of a sudoku puzzle as the first list element and a 9x9x9 logical array representing the solutions of the sudoku puzzle

solution

this is a vector of three numerics which are the index of the solution found

Value

This function takes a sudokuPuzzle object and a solution produced from logic1 and updates the 9x9 puzzle matrix with the corresponding solution and places the correct TRUE/FALSE values in the corresponding places in the 9x9x9 logical array


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