Skip to content

Group.CheckWithSumGreater

Source Code | Usage Examples | Group Functions

Checks if there is a combination of cards, with a minimum and maximum, that has the sum of f(c,...) result greater than or equal to (int sum) in a group (Group g). Function f accepts at least one parameter (f(c,...), with c as each member of the group), and the return value should be integer. The second returned value indicates whether the check failed because of overtributing (in which case it will be true), or because of undertributing.

Signature

Group.CheckWithSumGreater(Group g, function f, int sum, any ...) → bool, bool

lua
g:CheckWithSumGreater(f,sum,...)

Parameters

Returns


under-construction