Skip to content

Instantly share code, notes, and snippets.

@pberkes
Created January 14, 2019 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pberkes/d7cc9b8a6c55681baeacbeb2005db879 to your computer and use it in GitHub Desktop.
Save pberkes/d7cc9b8a6c55681baeacbeb2005db879 to your computer and use it in GitHub Desktop.
def find_sets(cards):
"""Brute-force Sets solver."""
return [indices
for indices in itertools.combinations(range(cards.shape[1]), 3)
if is_set(cards, indices)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment