|
|
|
@ -142,6 +142,8 @@ class B4lancePong(object):
@@ -142,6 +142,8 @@ class B4lancePong(object):
|
|
|
|
|
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
|
|
|
|
sock.connect(self.__balanceserver) |
|
|
|
|
print('connected!') |
|
|
|
|
balance_util_p1 = blup.balance_util.BalanceUtil(sock, 0) |
|
|
|
|
balance_util_p2 = blup.balance_util.BalanceUtil(sock, 1) |
|
|
|
|
|
|
|
|
|
while get_balance_from_sock(sock, 0) == -128: |
|
|
|
|
print('waiting for player...') |
|
|
|
|