while ( field [ x ] [ y ] == MINE or

for i in range ( mine_count ) :

for row in board:

return ( row_idx >= 0 and row_idx < row_max and

for ( x_move , y_move ) in SURROUNDING_CELLS:

if not is_valid_cell ( row_idx + x_move ,

for row_idx , row in enumerate ( field ) :

for col_idx , cell in enumerate ( row ) :

for ( x_move , y_move ) in SURROUNDING_CELLS:

if not is_valid_cell ( row_idx + x_move ,

for row_idx , sol_row in enumerate ( solution_board ) :

for col_idx , sol_col in enumerate ( sol_row ) :

if ( interface_board [ row_idx ] [ col_idx ] == HIDDEN and