sudoku v1.0.1 Sudoku.Filter

Summary

Functions

Is candidate value a valid option in this square

Filter a list of squares, applying the given filter function Returns those where the filter function is true

Is square solved

Convenience method to compare two squares are in the same box

Filter function to find all other squares in specific unit type containing one of the target squares

Filter function to find all other squares in all units containing target

Is there only a single candidate option left for this square

Functions

candidate_is_possible?(square, candidate)

Is candidate value a valid option in this square

exclude_squares?(square, excluded)
filter_squares(squares, filter_fn)

Filter a list of squares, applying the given filter function Returns those where the filter function is true

not_solved?(square)

Is square solved

same_box?(square1, square2)

Convenience method to compare two squares are in the same box

same_rcb?(square, targets, atom)

Filter function to find all other squares in specific unit type containing one of the target squares

same_unit?(square, target)

Filter function to find all other squares in all units containing target

single_candidate?(square)

Is there only a single candidate option left for this square