Set, the card game: Difference between revisions

Content added Content deleted
Line 74: Line 74:
""" Return a vector of the sets in the vector of SetCards """
""" Return a vector of the sets in the vector of SetCards """
function process_deal(cards::Vector{SetCard})
function process_deal(cards::Vector{SetCard})
return Iterators.filter(combo -> allsameordifferent(combo...), collect(combinations(cards, 3)))
return Iterators.filter(combo -> allsameordifferent(combo...), combinations(cards, 3))
end
end