Group.SelectWithSumEqual
Source Code | Usage Examples | Group
Functions
Makes a player (int player) select members of a group (Group g) which results in a combination of cards, with a minimum (int min) and maximum 9int max), that has the sum of f(c,...) result equal to (int sum). Function f accepts at least one parameter (f(c,...), with c as each member of the group), and the return value should be integer.
Signature
Group.SelectWithSumEqual(Group g
, int player
, function f
, int sum
, int min
, int max
, any ...
) → Group
lua
g:SelectWithSumEqual(player,f,sum,min,max,...)
Parameters
Group
g
(To be added)
int
player
(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)