Skip to content

Instantly share code, notes, and snippets.

@lettergram
Last active October 25, 2015 17:25
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 lettergram/07d7d9d0abd706bf3069 to your computer and use it in GitHub Desktop.
Save lettergram/07d7d9d0abd706bf3069 to your computer and use it in GitHub Desktop.
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