Declaration
public MaximumCountConstraint(
IEnumerable<int> cells,
Func<int, bool> isRestrictedValue,
int maxAllowed
)
Summary
Constrains a set of values to occur a specified maximum number of times within a specified region.
Parameters
IEnumerable<int> | cells |
Region of cells affected by the constraint. |
Func<int, bool> | isRestrictedValue |
Determines which value(s) may only occur up to maxAllowed number of times within cells. |
int | maxAllowed |
The maximum number of times a restricted value may occur within cells. |