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

Function print_board

sudoku.py:56–68  ·  view source on GitHub ↗
(bo)

Source from the content-addressed store, hash-verified

54
55
56def print_board(bo):
57 for i in range(len(bo)):
58 if i % 3 == 0 and i != 0:
59 print("- - - - - - - - - - - - - ")
60
61 for j in range(len(bo[0])):
62 if j % 3 == 0 and j != 0:
63 print(" | ", end="")
64
65 if j == 8:
66 print(bo[i][j])
67 else:
68 print(str(bo[i][j]) + " ", end="")
69
70
71def find_empty(bo):

Callers 1

sudoku.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected