get_box: Get the smaller 3 by 3 grid in a sudoku

View source: R/get_box.R

get_boxR Documentation

Get the smaller 3 by 3 grid in a sudoku

Description

This function returns the 3 by 3 grid on which specified row and column lie on a sudoku

Usage

get_box(board, row, col)

Arguments

board

A sudoku grid/board

row

specified row

col

specified column

Value

A 3 by 3 numeric matrix

Examples

b1 <- sample_boards()[[2]]
get_box(b1, 4, 6)

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