Create a gist now

Instantly share code, notes, and snippets.

@lettergram /round.py
Last active Oct 25, 2015

One round of a deck
# Run through round of game
def round(deck):
table = []
while len(deck) > 0:
table.append(deck.pop(0))
if len(deck) != 0:
deck.append(deck.pop(0))
table.reverse()
return table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment