Group.CheckWithSumEqual
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 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.CheckWithSumEqual(Group g
, function f
, int sum
, int min
, int max
, any ...
) → bool, bool
lua
g:CheckWithSumEqual(f,sum,min,max,...)
Parameters
Group
g
(To be added)
function
f
(To be added)
int
sum
(To be added)
int
min
(To be added)
int
max
(To be added)
any
...
(To be added)