Skip to content

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

Returns


under-construction