deck.DECK -> deck.new_deck() to avoid globals (better for multi-table play).
[poker.git] / pbot.py
diff --git a/pbot.py b/pbot.py
index 0e7f32ed80ef4ad179ea574c3c271ec5b5a25ab4..3a7ec5be12b9aedf3da18eaf38087a1bae2d430d 100755 (executable)
--- a/pbot.py
+++ b/pbot.py
@@ -4,14 +4,14 @@
 """
 
 from table import Player, Blinds, Table
-from deck import DECK
+from deck import new_deck
 
 
 def run(players, blinds, start_stack, hand_limit, tournaments, verbose=False):
     for n in xrange(tournaments):
         for player in players:
             player.cash = start_stack
-        table = Table(deck=DECK, players=players, blinds=blinds,
+        table = Table(deck=new_deck(), players=players, blinds=blinds,
                       verbose=verbose)
         while len(table.players) > 1 and table.hand_count < hand_limit:
             table.play_round()