Browse Source

added balance_utils for player 1 and 2

feature/balanceutils
informaniac 7 years ago
parent
commit
16c4dcc8d6
  1. 2
      games/balancep0ng.py

2
games/balancep0ng.py

@ -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...')

Loading…
Cancel
Save