Learn R Programming

RSDK (version 1.0.1)

bt_solver: 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

Run this code
# NOT RUN {
bt_solver(x=grid_gen(49))
# }

Run the code above in your browser using DataLab