MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / next_empty

Function next_empty

projects/Sudoku_solver/main.py:111–118  ·  view source on GitHub ↗
(bo)

Source from the content-addressed store, hash-verified

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

Callers 1

solveFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected