create_filled_grid Subroutine

public subroutine create_filled_grid(grid)


Puzzle generators


Grid generation by brute force: in each cycle a digit is added and checked for validity. If the grid becomes invalid, the grid generation is started all over again.

Arguments

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

Sudoku grid


Calls

proc~~create_filled_grid~~CallsGraph proc~create_filled_grid create_filled_grid proc~valid_digit valid_digit proc~create_filled_grid->proc~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

Variables

Type Visibility Attributes Name Initial
integer, public :: col
real, public :: r
integer, public :: row
integer, public :: tests