MCPcopy Index your code
hub / github.com/python/cpython / solve

Method solve

Lib/test/test_generators.py:2250–2253  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2248
2249 # Generate solutions.
2250 def solve(self):
2251 self._init_board()
2252 for x in conjoin(self.squaregenerators):
2253 yield x
2254
2255 def printsolution(self, x):
2256 m, n = self.m, self.n

Callers

nothing calls this directly

Calls 2

_init_boardMethod · 0.95
conjoinFunction · 0.85

Tested by

no test coverage detected