From: W. Trevor King Date: Tue, 7 Dec 2010 16:49:03 +0000 (-0500) Subject: Copy the player list in pbot.py so we kill all players. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9462e654de88566b32eecaa193a84ff9738e42d5;p=poker.git Copy the player list in pbot.py so we kill all players. In the previous implementation, Table removed players from the list as they died, so the `finally` block in pbot.py only killed the winner. --- diff --git a/pbot.py b/pbot.py index af7a3fb..0e7f32e 100755 --- a/pbot.py +++ b/pbot.py @@ -65,7 +65,7 @@ if __name__ == '__main__': players.append(Player(name=name, brain=brain)) try: - run(players=players, blinds=blinds, start_stack=options.stack, + run(players=list(players), blinds=blinds, start_stack=options.stack, hand_limit=options.limit, tournaments=options.tournaments, verbose=options.verbose) finally: # kill the bots