Module solver

Source
Expand description

Nonogram solver module

Structs§

Nonogram
Represents a Nonogram puzzle, including its constraints and solution.

Enums§

Cell
Represents the state of a cell in a Nonogram puzzle.

Functions§

parse_nonogram
Parses a Nonogram from a string description. Format Assumption: rows <num_rows> cols <num_cols> <row_1_constraint_1> <row_1_constraint_2> … … (num_rows lines) <col_1_constraint_1> <col_1_constraint_2> … … (num_cols lines) Constraints are space-separated positive integers. Empty lines for constraints mean [0].
parse_nonogram_file
Parses a Nonogram from a file.