bt_solver: bt_solver()

View source: R/bt_solver.R

bt_solverR Documentation

bt_solver()

Description

This function is a recurcive function that solves a sudoku grid using the backtracking algorithme

Usage

bt_solver(x)

Arguments

x

A sudoku grid

Value

A list of two elements in the first one there is the grid x solved as a matrix of 9 by 9, and the second one contains the number of backtracking does R do to solving it.

Examples

bt_solver(x=grid_gen(49))

RSDK documentation built on March 18, 2022, 5:08 p.m.