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

Method hint

projects/Sudoku-Solver/SudokuGUI.py:152–163  ·  view source on GitHub ↗
(self, keys)

Source from the content-addressed store, hash-verified

150 self.redraw({}, wrong, time)
151
152 def hint(self, keys):
153 while True:
154 i = random.randint(0, 8)
155 j = random.randint(0, 8)
156 if self.board[i][j] == 0:
157 if (j, i) in keys:
158 del keys[(j, i)]
159 self.board[i][j] = self.solvedBoard[i][j]
160 self.tiles[i][j].value = self.solvedBoard[i][j]
161 return True
162 elif self.board == self.solvedBoard:
163 return False
164
165
166class Tile:

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected