old_version/solver.py
def update_positions_if_one_dimensional_positions_in_squares(self,
                                                                 positions_in_squares: Dict[int, List[Tuple[int, int]]],
                                                                 flag: int) -> Dict[int, List[Tuple[int, int]]]:
        """
        Checks if there are rows or columns inside squares where number must be inserted.
        Deletes the same rows/columns' coordinates in another squares (inside list od available coordinates).
        :param positions_in_squares: list of available blank cells' coordinates divided by squares
        :param flag: 0 for row, 1 for column
        :return: updated list of available blank cells' coordinates divided by squares
        """
        for square in positions_in_squares:
            element = self.positions_in_one_dimention(positions_in_squares[square], flag)
            self.delete_unavailable_coordinates(element, flag, positions_in_squares, square)
        return positions_in_squares

        Checks if there are rows or columns inside squares where number must be inserted.
        Deletes the same rows/columns' coordinates in another squares (inside list od available coordinates).
        :param positions_in_squares: list of available blank cells' coordinates divided by squares
        :param flag: 0 for row, 1 for column
        :return: updated list of available blank cells' coordinates divided by squares
        
Checks if there are rows or columns inside squares where number must be inserted.
Deletes the same rows/columns' coordinates in another squares (inside list od available coordinates).
Checks if there are rows or columns inside squares where number must be inserted . Deletes the same rows / columns ' coordinates in another squares ( inside list od available coordinates ) .
def update_positions_if_one_dimensional_positions_in_squares(self,
                                                                 positions_in_squares: Dict[int, List[Tuple[int, int]]],
                                                                 flag: int) -> Dict[int, List[Tuple[int, int]]]:
        for square in positions_in_squares:
            element = self.positions_in_one_dimention(positions_in_squares[square], flag)
            self.delete_unavailable_coordinates(element, flag, positions_in_squares, square)
        return positions_in_squares
def update_positions_if_one_dimensional_positions_in_squares ( self , positions_in_squares : Dict [ int , List [ Tuple [ int , int ] ] ] , flag : int ) -> Dict [ int , List [ Tuple [ int , int ] ] ] : for square in positions_in_squares : element = self . positions_in_one_dimention ( positions_in_squares [ square ] , flag ) self . delete_unavailable_coordinates ( element , flag , positions_in_squares , square ) return positions_in_squares
Checks if there are rows or columns inside squares where number must be inserted.
Checks if there are rows or columns inside squares where number must be inserted .
"""
        Checks if there are rows or columns inside squares where number must be inserted.
        Deletes the same rows/columns' coordinates in another squares (inside list od available coordinates).
        :param positions_in_squares: list of available blank cells' coordinates divided by squares
        :param flag: 0 for row, 1 for column
        :return: updated list of available blank cells' coordinates divided by squares
        """
updated list of available blank cells' coordinates divided by squares
updated list of available blank cells ' coordinates divided by squares
self
positions_in_squares
Dict[int, List[Tuple[int, int]]]
list of available blank cells' coordinates divided by squares
list of available blank cells ' coordinates divided by squares
flag
int
0 for row, 1 for column
0 for row 1 for column