valid_digit Function

public pure function valid_digit(grid, row, col)

Returns true if the row, column and region of a digit are all valid:

Arguments

Type IntentOptional Attributes Name
integer, intent(in), dimension(9, 9) :: grid

Sudoky grid.

integer, intent(in) :: row

Row number of the region.

integer, intent(in) :: col

Column number of the region.

Return Value logical


Calls

proc~~valid_digit~~CallsGraph proc~valid_digit valid_digit proc~valid_colum_or_row valid_colum_or_row proc~valid_digit->proc~valid_colum_or_row proc~valid_zone valid_zone proc~valid_digit->proc~valid_zone

Called by

proc~~valid_digit~~CalledByGraph proc~valid_digit valid_digit proc~create_filled_grid create_filled_grid proc~create_filled_grid->proc~valid_digit

Variables

Type Visibility Attributes Name Initial
integer, public :: i
integer, public :: j