Skip to content

Group.SelectWithSumGreater

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 and maximum, that has the sum of f(c,...) result greater than or 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.SelectWithSumGreater(Group g, int player, function f, int sum, any ...) → Group

lua
g:SelectWithSumGreater(player,f,sum,...)

Parameters

Returns


under-construction