Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created December 6, 2010 02:53
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 jkutner/729763 to your computer and use it in GitHub Desktop.
Save jkutner/729763 to your computer and use it in GitHub Desktop.
max_deck(SetOfDecks, N, Set) :-
max_n(SetOfDecks, N, Max),
write(N),write(' -> '),write(Max),
decks_with_n_of(SetOfDecks, N, Max, SetOfDecksWithMaxAtN),
write(', '), length(SetOfDecksWithMaxAtN, L), write(L),nl,
M is N+1,
max_deck(SetOfDecksWithMaxAtN, M, Set).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment