sudoku v1.0.1 Sudoku.Square

Summary

Functions

Remove all candidates, except the given value. Assign the given value as the solution

Remove all candidates, except the given values

Elininate given candidates

Fetch the solo candidate remaining

We have an invalid state if candidates set is empty

Functions

assign(square, value)

Remove all candidates, except the given value. Assign the given value as the solution

assign_candidates(square, value)

Remove all candidates, except the given values.

Does not assign a solution

eliminate(square, candidates)

Elininate given candidates

solo_candidate(square)

Fetch the solo candidate remaining

valid?(square)

We have an invalid state if candidates set is empty