old_version/solver.py
def assert_sum_digits_in_element(self, elements_list: List[SudokuElement], result: int = 45) -> bool:
        """
        Check if sum of digits in sudoku element equals given result.
        :param elements_list: list of sudoku elements (rows, columns or squares)
        :param result: For element fully filled with unique digits result equals sum of digits from 1 to 9, which is 45.
        :return: bool
        """
        for element in elements_list:
            if np.sum(self.s.array[element.row_start:element.row_stop,
                      element.column_start:element.column_stop]) != result:
                return False
        return True

        Check if sum of digits in sudoku element equals given result.
        :param elements_list: list of sudoku elements (rows, columns or squares)
        :param result: For element fully filled with unique digits result equals sum of digits from 1 to 9, which is 45.
        :return: bool
        
Check if sum of digits in sudoku element equals given result.
Check if sum of digits in sudoku element equals given result .
def assert_sum_digits_in_element(self, elements_list: List[SudokuElement], result: int = 45) -> bool:
        for element in elements_list:
            if np.sum(self.s.array[element.row_start:element.row_stop,
                      element.column_start:element.column_stop]) != result:
                return False
        return True
def assert_sum_digits_in_element ( self , elements_list : List [ SudokuElement ] , result : int = 45 ) -> bool : for element in elements_list : if np . sum ( self . s . array [ element . row_start : element . row_stop , element . column_start : element . column_stop ] ) != result : return False return True
Check if sum of digits in sudoku element equals given result.
Check if sum of digits in sudoku element equals given result .
"""
        Check if sum of digits in sudoku element equals given result.
        :param elements_list: list of sudoku elements (rows, columns or squares)
        :param result: For element fully filled with unique digits result equals sum of digits from 1 to 9, which is 45.
        :return: bool
        """
None
self
elements_list
List[SudokuElement]
list of sudoku elements (rows, columns or squares)
list of sudoku elements ( rows columns or squares )
result
int
For element fully filled with unique digits result equals sum of digits from 1 to 9, which is 45.
For element fully filled with unique digits result equals sum of digits from 1 to 9 which is 45 .