MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / _isCompleteSetOfNumbers

Method _isCompleteSetOfNumbers

src/gamesbyexample/sudoku.py:103–105  ·  view source on GitHub ↗

Return True if numbers contains the digits 1 through 9.

(self, numbers)

Source from the content-addressed store, hash-verified

101 print(' ------+-------+------')
102
103 def _isCompleteSetOfNumbers(self, numbers):
104 """Return True if numbers contains the digits 1 through 9."""
105 return sorted(numbers) == list('123456789')
106
107 def isSolved(self):
108 """Returns True if the current grid is in a solved state."""

Callers 1

isSolvedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected