Validate Partial Sudoku Solution
validate_partial_sudoku_solutionCheck a partially-filled Sudoku grid for conflicts and verify it remains completable to a full valid solution.
Instructions
Check whether a partially-filled Sudoku grid is conflict-free and still completable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | Yes | A 9x9 Sudoku grid; 0 marks an empty cell. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conflicts | Yes | ||
| empty_cells | Yes | Every still-empty cell in the grid, regardless of has_conflicts | |
| has_conflicts | Yes | ||
| is_completable | Yes | Whether the grid can still be completed; None when has_conflicts is True, since completability is not a meaningful question until conflicts are resolved | |
| empty_cells_count | Yes | Number of still-empty cells, i.e. len(empty_cells) |