From 9462e654de88566b32eecaa193a84ff9738e42d5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 7 Dec 2010 11:49:03 -0500 Subject: [PATCH] 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. --- pbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2