Browse Source

BalanceTtrsPlayer now is being created with a BalanceUtil instead of socket address and player id

feature/balanceutils
informaniac 7 years ago
parent
commit
29d0cfcb31
  1. 5
      games/ttrs.py

5
games/ttrs.py

@ -233,10 +233,9 @@ class TestTtrsPlayer(TtrsPlayer): @@ -233,10 +233,9 @@ class TestTtrsPlayer(TtrsPlayer):
class BalanceTtrsPlayer(TtrsPlayer, threading.Thread):
def __init__(self, playground, addr, player_id):
def __init__(self, playground, balance_util):
self.playground = playground
self.addr = addr
self.player_id = player_id
self.balance_util = balance_util
self.evt = None
self.lastevt = None
threading.Thread.__init__(self, daemon=True)

Loading…
Cancel
Save