Mathdoku puzzle generator and solver.
Core types
| Type | Role |
|---|---|
[Cell] |
A grid position identified by (row, column), 1-indexed. |
[Fill] |
A bitmap set of candidate values 1..=9 for a cell. |
[Polyomino] |
A connected set of cells forming a cage shape. |
[Puzzle] |
An n×n cage structure with constraint propagation. |
[CageOperator] |
The arithmetic operator for a cage (Add, Subtract, etc.). |
Entry points
- Generate a random puzzle with [
generate()]. - Construct a puzzle programmatically with [
Puzzle::new] and [Puzzle::insert]. - Inspect cell values with [
Puzzle::get]. - Solve with [
Puzzle::solutions]. - Query valid operators for a polyomino with [
operators_for].