MCPcopy Create free account
hub / github.com/geekcomputers/Python / find_empty

Function find_empty

sudoku.py:71–77  ·  view source on GitHub ↗
(bo)

Source from the content-addressed store, hash-verified

69
70
71def find_empty(bo):
72 for i in range(len(bo)):
73 for j in range(len(bo[0])):
74 if bo[i][j] == 0:
75 return (i, j) # row, col
76
77 return None
78
79
80print_board(board)

Callers 1

solveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected