Skip to content

Instantly share code, notes, and snippets.

@jbwhit
Last active September 15, 2017 16:13
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 jbwhit/1dfe64babbc007f231ad520717299d4d to your computer and use it in GitHub Desktop.
Save jbwhit/1dfe64babbc007f231ad520717299d4d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hectorpefo
Copy link

Suppose the players' decks contain one card each, an ace and a two. Then the game should last one round. But play_turn will return False in the first round, so your turn count will be 2. I think you over-count by one round every game except those that end because a player has insufficient cards to do a battle. Right? I think the only games you see an even count for are those where the losing player has 2 too few cards.

@jbwhit
Copy link
Author

jbwhit commented Sep 15, 2017

Yep, I think you're right. I'll update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment