Skip to content

Make combinatoric method recursive, generic #1

@justincohler

Description

@justincohler

Ideally, the combination method in the SetGame class...

    public List<List<Card>> combinations(List<Card> cards, List<List<Card>> combos)

would be replaced with a generic recursive method...

    public List<List<Card>> combinations(List<Card> cards, List<List<Card>> combos, Integer comboSize, Integer index)

where recursive calls could act on any size list of cards M for any combination size N where M > N

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions