MCPcopy Create free account
hub / github.com/ndleah/python-mini-project / next_empty

Function next_empty

Sudoku_solver/main.py:115–122  ·  view source on GitHub ↗
(bo)

Source from the content-addressed store, hash-verified

113
114
115def next_empty(bo):
116 # searching for the next 0 on the board
117 for i in range(len(bo)):
118 # looping rows
119 for j in range(len(bo[0])):
120 # looping columns
121 if bo[i][j] == 0:
122 return i, j # returning row and column
123
124
125def solve(bo):

Callers 1

solveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected