Last active
October 25, 2015 17:25
-
-
Save lettergram/07d7d9d0abd706bf3069 to your computer and use it in GitHub Desktop.
One round of a deck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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