From 29d0cfcb31342079fa7ef27f7f5728dc05e1da9d Mon Sep 17 00:00:00 2001 From: informaniac Date: Fri, 1 Dec 2017 18:10:55 +0100 Subject: [PATCH] BalanceTtrsPlayer now is being created with a BalanceUtil instead of socket address and player id --- games/ttrs.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/games/ttrs.py b/games/ttrs.py index 82bc623..dcbae05 100755 --- a/games/ttrs.py +++ b/games/ttrs.py @@ -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)