Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Ordered search solution in Clear category for Card Game by tokyoamado
def cards(deck, hand):
cards = [(x, x + 1) for x in range(deck)]
for h in sorted(hand):
for c in cards:
if h in c:
cards.remove(c)
break
else:
return False
return True
March 6, 2019