Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hectorpefo

This comment has been minimized.

Copy link

commented Sep 14, 2017

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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.