boolean function ( ) { for ( int loc0 = 0 ; loc0 < 9 ; loc0 ++ ) { for ( int loc1 = 0 ; loc1 < 9 ; loc1 ++ ) { if ( puzzle [ loc0 ] [ loc1 ] > 9 || puzzle [ loc0 ] [ loc1 ] < 1 ) { return false ; } } } return true ; }
check to be sure there is an entry 1-9 in each position in the matrix exit with false as soon as you find one that is not concode_field_sep int[][] puzzle concode_elem_sep boolean[] digits concode_field_sep boolean checkSquare concode_elem_sep boolean checkPuzzle concode_elem_sep boolean checkColumn concode_elem_sep boolean digitCheck concode_elem_sep boolean checkRow concode_elem_sep void resetCheck