old_version/solver.py
def search_for_available_positions(self, digit: int) -> List[Tuple[int, int]]:
        """
        Searches for blank cells where there are no interferences (same number in a row, column or square)
        :param digit: number we are evaluating
        :return: list of blank cells' coordinates where number can be inserted
        """
        positions = np.where(self.s.array == digit)
        available_rows = set(i[0] for i in self.s.zero_positions).difference(set(positions[0]))
        available_cols = set(i[1] for i in self.s.zero_positions).difference(set(positions[1]))
        return [i for i in product(available_rows, available_cols) if self.s.array[i[0], i[1]] == 0]

        Searches for blank cells where there are no interferences (same number in a row, column or square)
        :param digit: number we are evaluating
        :return: list of blank cells' coordinates where number can be inserted
        
Searches for blank cells where there are no interferences (same number in a row, column or square)
Searches for blank cells where there are no interferences ( same number in a row column or square )
def search_for_available_positions(self, digit: int) -> List[Tuple[int, int]]:
        positions = np.where(self.s.array == digit)
        available_rows = set(i[0] for i in self.s.zero_positions).difference(set(positions[0]))
        available_cols = set(i[1] for i in self.s.zero_positions).difference(set(positions[1]))
        return [i for i in product(available_rows, available_cols) if self.s.array[i[0], i[1]] == 0]
def search_for_available_positions ( self , digit : int ) -> List [ Tuple [ int , int ] ] : positions = np . where ( self . s . array == digit ) available_rows = set ( i [ 0 ] for i in self . s . zero_positions ) . difference ( set ( positions [ 0 ] ) ) available_cols = set ( i [ 1 ] for i in self . s . zero_positions ) . difference ( set ( positions [ 1 ] ) ) return [ i for i in product ( available_rows , available_cols ) if self . s . array [ i [ 0 ] , i [ 1 ] ] == 0 ]
Searches for blank cells where there are no interferences (same number in a row, column or square)
Searches for blank cells where there are no interferences ( same number in a row column or square )
"""
        Searches for blank cells where there are no interferences (same number in a row, column or square)
        :param digit: number we are evaluating
        :return: list of blank cells' coordinates where number can be inserted
        """
list of blank cells' coordinates where number can be inserted
list of blank cells ' coordinates where number can be inserted
self
digit
int
number we are evaluating
number we are evaluating