valid_zone Function

public pure function valid_zone(region)

Validation of a zone/region.

Returns true if each digit in the 3x3 region appears only once.

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension(1:3, 1:3) :: region

Sudoku’s subregion

Return Value logical


Called by

proc~~valid_zone~~CalledByGraph proc~valid_zone valid_zone proc~valid_digit valid_digit proc~valid_digit->proc~valid_zone proc~valid_grid valid_grid proc~valid_grid->proc~valid_zone proc~cli_solver cli_solver proc~cli_solver->proc~valid_grid proc~create_filled_grid create_filled_grid proc~create_filled_grid->proc~valid_digit

Variables

Type Visibility Attributes Name Initial
integer, public :: col
integer, public, dimension(1:9) :: counters
integer, public :: row